Find Jobs
Hire Freelancers

Dice

$25-30 USD

Terminado
Publicado hace casi 20 años

$25-30 USD

Pagado a la entrega
**Due Friday, June** **25** Design and implement a Visual C++ .NET program that simulates rolling a pair of standard six-sided dice as described below. Consider this experiment: Roll two dice and remember their sum (this is called the target sum). Repeatedly toss the two dice again until the same target sum reappears. Count the total number of times the two dice are tossed, including the initial and final tosses that both yield the target sum. The minimum possible number of tosses is two in any trial of this experiment. Your program should first prompt the user to enter the number of times to try the above experiment, and then repeat this experiment the specified number of times. For each possible target sum (2 through 12), print the number of trials that used this particular target sum, and also print the average number of tosses that were made during the trials which used this target sum. Arrange these results in tabular form as shown in the sample runs below. _**Clarification and example**_**_:_** Each trial of the experiment consists of rolling two dice to obtain a target sum, and then continuing to roll the dice until the same target sum reappears. So a single trial consists of at least two dice rolls, and likely more than two dice rolls. The number of trials is specified by the user. Suppose the user specifies 2 trials, and this sequence of tosses occurs: Trial 1: 7 10 5 7 (4 tosses) Trial 2: 7 4 9 8 6 4 11 10 7 (9 tosses) So for the target sum 7, the number of trials is 2, and the average number of tosses is (4+9)/2 = 6.5 The only libraries that may be included for this project are <iostream>, <cstdlib>, and <ctime>. Seed the random number generator so that different results are obtained on each run. Do NOT use any arrays. Here are three sample runs: <[login to view URL]> ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): ## Platform Windows C++.net
ID del proyecto: 3257157

Información sobre el proyecto

25 propuestas
Proyecto remoto
Activo hace 20 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
Adjudicado a:
Avatar del usuario
See private message.
$5 USD en 1 día
5,0 (36 comentarios)
4,9
4,9
25 freelancers están ofertando un promedio de $12 USD por este trabajo
Avatar del usuario
See private message.
$25,50 USD en 1 día
5,0 (28 comentarios)
6,5
6,5
Avatar del usuario
See private message.
$8,50 USD en 1 día
5,0 (64 comentarios)
6,0
6,0
Avatar del usuario
See private message.
$21,25 USD en 1 día
5,0 (51 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$17 USD en 1 día
5,0 (105 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$21,25 USD en 1 día
5,0 (14 comentarios)
4,1
4,1
Avatar del usuario
See private message.
$8,50 USD en 1 día
5,0 (12 comentarios)
3,5
3,5
Avatar del usuario
See private message.
$12,75 USD en 1 día
5,0 (42 comentarios)
3,7
3,7
Avatar del usuario
See private message.
$10,20 USD en 1 día
5,0 (31 comentarios)
3,7
3,7
Avatar del usuario
See private message.
$7,65 USD en 1 día
5,0 (29 comentarios)
3,5
3,5
Avatar del usuario
See private message.
$6,80 USD en 1 día
5,0 (7 comentarios)
3,0
3,0
Avatar del usuario
See private message.
$17 USD en 1 día
5,0 (13 comentarios)
2,7
2,7
Avatar del usuario
See private message.
$8,50 USD en 1 día
5,0 (7 comentarios)
2,4
2,4
Avatar del usuario
See private message.
$8,50 USD en 1 día
5,0 (8 comentarios)
2,4
2,4
Avatar del usuario
See private message.
$3,40 USD en 1 día
5,0 (4 comentarios)
1,7
1,7
Avatar del usuario
See private message.
$18,70 USD en 1 día
4,7 (4 comentarios)
1,1
1,1
Avatar del usuario
See private message.
$8,50 USD en 1 día
4,5 (1 comentario)
0,3
0,3
Avatar del usuario
See private message.
$6,80 USD en 1 día
5,0 (1 comentario)
0,5
0,5
Avatar del usuario
See private message.
$17 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$8,50 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$12,75 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
4,9
7
Miembro desde jun 14, 2004

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.