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: for rock, for paper, for scissors. If the user enters a 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 dont 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
