Find Jobs
Hire Freelancers

Dice

$25-30 USD

Selesai
Disiarkan hampir 20 tahun yang lalu

$25-30 USD

Dibayar semasa penghantaran
**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 Projek: 3257157

Tentang projek

25 cadangan
Projek jarak jauh
Aktif 20 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
See private message.
$5 USD dalam 1 hari
5.0 (36 ulasan)
4.9
4.9
25 pekerja bebas membida secara purata $12 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$25.50 USD dalam 1 hari
5.0 (28 ulasan)
6.5
6.5
Avatar Pengguna
See private message.
$8.50 USD dalam 1 hari
5.0 (64 ulasan)
6.0
6.0
Avatar Pengguna
See private message.
$21.25 USD dalam 1 hari
5.0 (51 ulasan)
5.3
5.3
Avatar Pengguna
See private message.
$17 USD dalam 1 hari
5.0 (105 ulasan)
5.3
5.3
Avatar Pengguna
See private message.
$21.25 USD dalam 1 hari
5.0 (14 ulasan)
4.1
4.1
Avatar Pengguna
See private message.
$8.50 USD dalam 1 hari
5.0 (12 ulasan)
3.5
3.5
Avatar Pengguna
See private message.
$12.75 USD dalam 1 hari
5.0 (42 ulasan)
3.7
3.7
Avatar Pengguna
See private message.
$10.20 USD dalam 1 hari
5.0 (31 ulasan)
3.7
3.7
Avatar Pengguna
See private message.
$7.65 USD dalam 1 hari
5.0 (29 ulasan)
3.5
3.5
Avatar Pengguna
See private message.
$6.80 USD dalam 1 hari
5.0 (7 ulasan)
3.0
3.0
Avatar Pengguna
See private message.
$17 USD dalam 1 hari
5.0 (13 ulasan)
2.7
2.7
Avatar Pengguna
See private message.
$8.50 USD dalam 1 hari
5.0 (7 ulasan)
2.4
2.4
Avatar Pengguna
See private message.
$8.50 USD dalam 1 hari
5.0 (8 ulasan)
2.4
2.4
Avatar Pengguna
See private message.
$3.40 USD dalam 1 hari
5.0 (4 ulasan)
1.7
1.7
Avatar Pengguna
See private message.
$18.70 USD dalam 1 hari
4.7 (4 ulasan)
1.1
1.1
Avatar Pengguna
See private message.
$8.50 USD dalam 1 hari
4.5 (1 ulasan)
0.3
0.3
Avatar Pengguna
See private message.
$6.80 USD dalam 1 hari
5.0 (1 ulasan)
0.5
0.5
Avatar Pengguna
See private message.
$17 USD dalam 1 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
See private message.
$8.50 USD dalam 1 hari
0.0 (0 ulasan)
0.0
0.0
Avatar Pengguna
See private message.
$12.75 USD dalam 1 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera UNITED STATES
United States
4.9
7
Ahli sejak Jun 14, 2004

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.