Menu

Q11 Write Set Python Classes Simulate Internet Application One Party Ali Randomly Creating Q43812089

Q11. Write a set of Python classes that can simulate an Internet application in which one party, Ali, is randomly creating a

Q11. Write a set of Python classes that can simulate an Internet application in which one party, Ali, is randomly creating a set of packets (i.e. e-mails) that she wants to send to Veli. An Internet process is continually checking if Ali has any packets to send, and if so, it delivers them to Veli’s computer, and Veli is periodically checking if his computer has a packet from Ali, and, if so, he reads, displays and deletes it. Hint: Use three different classes, for Ali, Veli and Internet, and provide methods that perform their various tasks, as well as a simulator engine that performs the random messaging. Show transcribed image text Q11. Write a set of Python classes that can simulate an Internet application in which one party, Ali, is randomly creating a set of packets (i.e. e-mails) that she wants to send to Veli. An Internet process is continually checking if Ali has any packets to send, and if so, it delivers them to Veli’s computer, and Veli is periodically checking if his computer has a packet from Ali, and, if so, he reads, displays and deletes it. Hint: Use three different classes, for Ali, Veli and Internet, and provide methods that perform their various tasks, as well as a simulator engine that performs the random messaging.

Expert Answer


Answer to Q11. Write a set of Python classes that can simulate an Internet application in which one party, Ali, is randomly creati…

OR