IN C++ LANGUAGE Write A Program That Stimulates The Rolling Of Two Dice. The Program Should Use Random Numbers To Roll

IN C++ LANGUAGE Write A Program That Stimulates The Rolling Of Two Dice. The Program Should Use Random Numbers To Roll

IN C++ LANGUAGE

Don't use plagiarized sources. Get Your Custom Essay on
IN C++ LANGUAGE Write A Program That Stimulates The Rolling Of Two Dice. The Program Should Use Random Numbers To Roll
Just from $13/Page
Order Essay

Write a program that stimulates the rolling of two dice. The program should use random numbers to roll the first die and again to role the second die. The sum of the values should be calculated. [Note; each die can show an interager value from 1 to 6, so the sum of the two values will vary from 2 to 12, with 7 being the most frequesnt sum and 2 and 12 being the least frequent sums.] Your program should roll the two dice 20 times. Use a one-dimensional array to tally the number of times each possible sum appears.

A) Print the value of die1+die2 = thier sum for each or the 20 rolls.

B)Print the number of times each some occuered in tabular formart.

C) Print the number of times a (1 and 1) was rolled, (1 and 2), and (1 and 3), …act, as a 2D array is shown.

Click here to view the answer.

Scroll to Top