Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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.24Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started