Question: C++ Program Write a program that rolls 6 dice until all six are the same. Rolling a dice must be done by a function that

C++ Program

Write a program that rolls 6 dice until all six are the same.

Rolling a dice must be done by a function that returns a 1 through 6.

Rolling 6 dice must be a function that returns a 0 for not all are the same and a 1 for all are the same.

Your program should then output how many tries it took to get 6 of the same number, along with what number matched on all the dice.

your program should then allow you to run the simulation again until you say you are done.

No fancy code please, Thanks

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!