Here is the assignment I get:
*****
Write an email simulator that processes mail at an average of 40 messages per minute. As messages are received, they are placed in a queue.assume that the messages arrive at an average rate of 30 messages per minute.messages must arrive randomly.
Each minute, you can dequeue up to 40 messages and send them. Assume that 25% of the messages in the queue cannot be sent in any processing cycle.use a random number to determine whether a given message can be sent. If it can’t be sent, enqueue it.
Run the simulation for 24 hours, At the end of the simulation, print the statistics that show:
-The total messages processed.
-The average arrival rate.
-The average number of messages sent per minute.
-The average number of messages in queue in a minute.
-The number of messages sent on the first attempt, the number sent on the second attempt, and so forth.
-The average number of times messages had to be requeued (do not include the messages sent the first time in this average)
Today I got this task for my assignment. So, I need help from you guys on this assignment because I'm a little bit beginner in this C++ programming field. Hope you all could help me :) Thank you
Stay tuned for several responses stating that this is not a homework site and you need to show your effort by posting your attempt and asking specific questions. Your assignment appears to be an intermediate task so if you can't even start it I suggest you re-take the course so you learn the basics.
Well, actually I've done a part of the coding. But the thing is I don't have any idea how to continue it. I wish you could help me. Thanks cnoeval ! And here is my code :