Question: C PROGRAMMING CODE! INTRO LEVEL CODE! Activities In this lab, you are going to write a program that pits the user game of rock-paper-scissors. Ask
Activities In this lab, you are going to write a program that pits the user game of rock-paper-scissors. Ask the user for one of the three p number to assign one of the three possibilities to the computer. (you) against the computer in a Ask the user to select rock, paper, or scissors Perform error Use letters rather than numbers for user inputs. 1. checking to ensure that the user enters a permitted value. etters 2. Generate the computer's selection. 3. Record the win for the user or computer (or a tie, as necessary). 4. Inform the user of the user's choice, . the computer's choice, and who won (or that there was a tie). The default behavior will be to repeat the above (1-4). Allow for an input to quit (break out of the game). After the user quits: display the number of games each player won as well as the number of ties, and the user's winning percentage. 5. 6. Tip: divide the problem into pieces and implement each, one at a time, checki ng to make s that each works properly (work with compiling code) before incorporating additional complexity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
