Write a program that demonstrates the Dice class from the previous problem. This program will roll twoDice
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that demonstrates the Dice class from the previous problem.
This program will roll twoDice objects repeatedly, add the value from the two dices together, to display a total for that roll.
Use a loop to do this150 times. This simulates150 independent rolls of two dice.
The program should keep track of how many times each total value (from 2 - 12) appears, and output the totals at the end.
Program output could look like this. The formatting is not required, but the content is.
Related Book For
Posted Date: