Question: When you run your program the following will happen in this order: A new deck will be created. The program will ask for the names
When you run your program the following will happen in this order:
A new deck will be created.
The program will ask for the names of the players.
The program will ask how many games you want to play. new for Prog
The unshuffled deck will be displayed on the screen.
The deck will be shuffled.
The shuffled deck will display on the screen.
The number of games selected in step will be played, announcing the winner of each game. Ties are
possible as well.
After all games are played the program will print the statistics.
Things to consider:
You will raise an exception in the Deck::deal function to if the deck is empty
You will catch the exception in the main function
You DO NOT need a default Card constructor since you are using an array
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
