Question: WRITE IN C++ 1. (a) Progran the follwing Dice class. Dice diceli int dice21 int Dice ) //aet numRo11s to 0 o1lO: int //returns aum

WRITE IN C++  WRITE IN C++ 1. (a) Progran the follwing Dice class. Dice

1. (a) Progran the follwing Dice class. Dice diceli int dice21 int Dice ) //aet numRo11s to 0 o1lO: int //returns aum print void +getSum) int (b) Write a main program which uses your Dice class for the following game: The user keeps rolling two dice until doubles appears. They win 10 times the number of rolls. Print each roll to the screen as shown below: Dice (3, 4) 10 (2, 5)30 (3, 6)4 (4, 5) (6, 2) 60 (3, 3) 50 60 (c) Create your own game which uses the Dice class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!