Answered step by step
Verified Expert Solution
Question
1 Approved Answer
THE PROGRAM MUST BE IN C. Dont do it in any other lenguage. 2. Write a program that simulates rolling a pair of dice. These
THE PROGRAM MUST BE IN C. Dont do it in any other lenguage.
2. Write a program that simulates rolling a pair of dice. These dice are a bit different: they have two sides the same; it means the sides of one dice are: 1, 1, 3, 3, 5, 5. After each roll of the pair, the program sums the dice values. The program rolls the pair X times, and determines a frequency of occurrence of different sums (the sums will be in the range from 2 to 10). Additionally, the program computes the mean of the sums (over those X rolls). Make sure that your program runs with X in the range from 10 to 10e9. The output's format should be the shown values are arbitrary): Sum Frequency 00 10 Mean value isStep 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