Question: LANGUAGE: C Write a program that simulates rolling of a pair of dice. After each roll of the pair the program sums the dice values.

LANGUAGE: C Write a program that simulates rolling of a pair ofLANGUAGE: C

Write a program that simulates rolling of a pair of dice. After each roll of the pair the program sums the dice values. The program rolls the pair 50 times, and determines a frequency of occurrence of different sums (the sums will be in the range from 2 to 12). Additionally, the program computes the mean of the sums (over those 50 rolls), as well as its standard deviation. The output's format should be (the values are random): Sum frequency 2 3 2 12 Average: 6.23 Standard derivation: 1.24

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!