Question: TW0 Dimensional array question with dice - Graded. (Dice Rolling) Write a program that simulates rolling two dice. The program should use the rand function

TW0 Dimensional array question with dice - Graded. (Dice Rolling) Write a program that simulates rolling two dice. The program should use the rand function twice to roll the first and second die, respectively, and then calculate their sum and store it in a Two-Dimensional array. Your program should roll the two dice 36 times. Display a similar diagram as shown on your tutorial sheet which shows the 36 possible combinations of the two dice. Sort the array using a sorting algorithm (insertion or selection) before displaying it in the diagram. Using a searching algorithm (linear or binary search) to search the Two-Dimensional array to determine the number of times 7 appears. Use a one-dimensional array of size 11 to tally the number of times each possible sum (2,3,4, 12) appears. Print the results in a tabular form
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
