Question: Write C++ code! for a dice game John and Pete are playing a game, John has nine 4-sided dice and Pete has six 6-sided dice.

Write C++ code! for a dice game

Write C++ code! for a dice game John and Pete are playing

John and Pete are playing a game, John has nine 4-sided dice and Pete has six 6-sided dice. They both roll their dice and the winner is the one with the highest number, in case they roll the same number it is a draw. Write a function that simulates 10 games, keep track and print each of their scores. After the 10h game print the overall score, declare a winner and print the best roll of each player

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!