Question: If both choose the same response, it is a draw ( there is no winner ) . The user's inputs are specified by entering a

If both choose the same response, it is a draw (there is no winner).
The user's inputs are specified by entering a number: 1 for rock, 2 for paper, 3 for scissors. If the user enters a 4, the program should print some useful statistics about the series of game results, print a goodbye message, and exit. The program should reject any other inputs with an error message; it should not crash.
On exit, the program computes and prints some final statistics about the play:
number of games completed (don't count games with errors or exit);
number of user wins and the percentage of total games won;
number of user losses and the percentage of total games lost;
number of draws and the percentage of total games that were draws.

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 Programming Questions!