Question: Due tonight, C++ please help. Write a program that simulates the rolling of two dice. The program should use rand to toll the first die

Due tonight, C++ please help.

Due tonight, C++ please help. Write a program that simulates the rolling

Write a program that simulates the rolling of two dice. The program should use rand to toll the first die and should use rand again to toll the second die. The sum of the two values should then be calculated Figure 7.26 shows the 36 possible combinations of the two dice. Your program, should roll the two dice 36,000 times. Use a one-dimensional array to tally the number of time s 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 toll a 7, so approximately one-sixth of all the rolls should be 7)

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!