Question: C++ in class formatting For this part, we are going to simulate dice rolling to play a game. Midnight is the outcome of rolling two
C++ in class formatting
For this part, we are going to simulate dice rolling to play a game. Midnight is the outcome of rolling two six-sided dice in a game of craps and getting a six on each die. Try to come up with the UML diagrams for the classes needed. Make sure you specify the public and private functions and attributes.
Also, keep in mind that a class represents one single object, and reflect that on your UML diagrams. Write a program to implement this game such that the player can roll the pair of dice as many times as he/she would like as long as they are not getting a six on each side. If the player gets a Midnight, then he/she wins and the game stops!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
