Question: + rolledPairsOtherThanOnes(): Boolean +totalRoll(): int +showRoll(): void Need this in C++ and also what to do when saving each file in Xcode ... Question #2-classes
Question #2-classes (11 pts) a) (2 pts) A PairOfDice object represent a pair of dice. Write a declaration for the class PairOfDice including its data members and function members based on the following UML and save it in a file called PairOfDice.h. Note: die1 and die2 will contain the result of rolling the die. maxRoll stores the number of sides the dice have. The minimum number of sides is 4. The user will be prompted in the driver for the number of sides
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
