Can someone help me out? I\'m not sure how to even start. Here what i\'m suppose
ID: 3620461 • Letter: C
Question
Can someone help me out? I'm not sure how to even start. Here what i'm supposed to do.Write a program in C that simulates the rolling of two dice. The program should use rand to roll the first die, and should use rand again to roll the second die. The sum of the two values should then be calculated. Note: since each die can show an integer value from 1 to 6, then the sum of the two values will vary from 2 to 12, with 7 being the most frequent sum and 2 and 12 the least frequent sum. The picture above shows 36 possible combinations of the two dice. your program should roll the two dice 36,000 times. use a single-subscripted array to tally the numbers of each possible sum appears. print the results in a tabular format. also determine if the totals are reasonable, i.e. there are six ways to roll a 7, so apporimately 1/6 of the rolls should be 7.
Explanation / Answer
please rate-thanksRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.