Print the results in a tabular format also determine if the


(Dice Rolling) Write a program that simulates the rolling of two dice. The sum of the two values should then be calculated. [Note: Each die can show an integer value from 1 to 6, so the sum of the two values will vary from 2 to 12, with 7 being the most frequent sum and 2 and 12 being the least frequent sums.] 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 numbers of times 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 approximately one-sixth of all the rolls should be 7).

2061_bd055eba-9e72-4342-8794-8917c7640c3c.png

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Print the results in a tabular format also determine if the
Reference No:- TGS02171557

Expected delivery within 24 Hours