Find Jobs
Hire Freelancers

Dice Roll

$30-5000 USD

Closed
Posted almost 22 years ago

$30-5000 USD

Paid on delivery
The program simulates the rolling of 2 dice. Use rand to roll the first die and then rand again to roll the second die. The sum of the two die should be calculated. With 2, 6-sideded dice there are a total of 36 total possible value combinations. The program should roll the dice 36,000 times. Use a single- subscripted array to tally the number of times each possible sum appears. Print the result to the screen in a tabular format(list the sum of the two dice, the total, the expected average, the actual average of this execution. The totals should appear reasonable, i.e there are 6 ways to roll a 7 so one-sixth of all rolls should be 7. Upon completion the program should promt the user for the opportunity to run the program again(Y/N) and accept the y or n in upper or lower case. Y runs the program again, n returns to the operating system. ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform Windows XP
Project ID: 2850369

About the project

36 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
36 freelancers are bidding on average $22 USD for this job
User Avatar
See private message.
$15.30 USD in 14 days
5.0 (136 reviews)
7.0
7.0
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (121 reviews)
6.8
6.8
User Avatar
See private message.
$34 USD in 14 days
4.1 (48 reviews)
6.3
6.3
User Avatar
See private message.
$12.75 USD in 14 days
4.9 (208 reviews)
5.8
5.8
User Avatar
See private message.
$21.25 USD in 14 days
4.9 (148 reviews)
5.6
5.6
User Avatar
See private message.
$12.75 USD in 14 days
4.9 (139 reviews)
5.6
5.6
User Avatar
See private message.
$17 USD in 14 days
5.0 (53 reviews)
5.4
5.4
User Avatar
See private message.
$29.75 USD in 14 days
4.6 (66 reviews)
5.1
5.1
User Avatar
See private message.
$42.50 USD in 14 days
4.7 (41 reviews)
4.7
4.7
User Avatar
See private message.
$12.75 USD in 14 days
4.6 (60 reviews)
4.4
4.4
User Avatar
See private message.
$21.25 USD in 14 days
4.9 (69 reviews)
4.2
4.2
User Avatar
See private message.
$25.50 USD in 14 days
4.9 (35 reviews)
3.9
3.9
User Avatar
See private message.
$17 USD in 14 days
5.0 (26 reviews)
3.8
3.8
User Avatar
See private message.
$17 USD in 14 days
3.6 (11 reviews)
3.8
3.8
User Avatar
See private message.
$21.25 USD in 14 days
5.0 (10 reviews)
3.5
3.5
User Avatar
See private message.
$21.25 USD in 14 days
4.6 (11 reviews)
3.1
3.1
User Avatar
See private message.
$6.80 USD in 14 days
5.0 (7 reviews)
2.6
2.6
User Avatar
See private message.
$17 USD in 14 days
5.0 (10 reviews)
2.6
2.6
User Avatar
See private message.
$10.20 USD in 14 days
4.7 (7 reviews)
2.5
2.5
User Avatar
See private message.
$8.50 USD in 14 days
4.5 (5 reviews)
2.0
2.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Apr 21, 2002

Client Verification

Other jobs from this client

Towers of hanoi
$30-5000 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.