Find Jobs
Hire Freelancers

C Programming Assignment - E-Mail Simulator

$10-50 USD

Adjudicado
Publicado hace más de 9 años

$10-50 USD

Pagado a la entrega
Queues are commonly used in network systems. For example, e-mail is placed in queues while it is waiting to be sent and after it arrives at the recipient's mailbox. A problem occurs, however, if the outgoing mail processor cannot send one or more of the messages in the queue. For example, a message might not be sent because the recipient's system is not available. Write an e-mail simulator that processes mail at an average of 40 messages per minute. As mesages are recieved, they are placed in a queue. For the simulation, assume that the messages arrive at an average rate of 30 messages per minute. Remember, the messages must arrive randomly, so you will need to use a random number generator to determine when messages are recieved. 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. Again, you will need to use a random number to determine whether a given message can be sent. If it can't be sent, put it back at the end of the queue(enqueue it). Run the simulation for 24(simulated) hours, tracing the number of times each message had to be requeued. At the end of the simulation, print the statistics that show: a. The total messages processed. b. The average arrival rate. c. The average number of messages sent per minute. d. The average number of messages in the queue in a minute. e. The number of messages send on the first attempt, the number sent on the second attempt, and so forth. f. The average number of times messages had to be requeued (do not include the messages sent the first time in this average). ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. in c source code and c++ source code...
ID del proyecto: 6731332

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
1 freelancer está ofertando un promedio de $45 USD por este trabajo
Avatar del usuario
I have 3 years experience in C. The message should be simulated right? and not actually recieve email message right?
$45 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de MALAYSIA
Pulau Pinang, Malaysia
0,0
0
Miembro desde nov 14, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.