Computers and Technology

Write a program that evaluates the random distribution of a dice. The game should first prompt the client for a number of die throws that he would like. The game then throws the die that many times. The game records the number of times each die number appears on top and calculates the average for the six values. The program then computes the percent difference between the average and the number for each die face value. Use at least three methods: One for input, one for processing and one for output. Allow the client to repeat the game as many times as she wishes. A sample run of the game would look like this: This game requests a number from the player.
The game then throws the die that number of times.
The game then displays the percentage difference between the number for each die face value and the average
Please enter the number of times that you would like the computer to throw the dice.

The number of throws is 1200 with the average of 200.
The percentage from the average for each diece number is:
Dice number 1 landed 206 times and is 3% above the average.
Dice number 2 landed 204 times and is 2% above the average.
Dice number 3 landed 194 times and is 3% below the average.
Dice number 4 landed 192 times and is 4% below the average.
Dice number 5 landed 193 times and is 3.5% below the average.
Dice number 6 landed 211 times and is 5.5% above the average.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:30, solikhalifeoy3j1r
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, taiyana74
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 24.06.2019 19:30, luckye
Can someone who is skilled at coding create me a java chess game. don't copy from online source codes. make it original ! : d
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, corinnerodriguez2001
How to delete a question in
Answers: 2
Do you know the correct answer?
Write a program that evaluates the random distribution of a dice. The game should first prompt the c...

Questions in other subjects:

Konu
Mathematics, 10.12.2020 21:00
Konu
Mathematics, 10.12.2020 21:00