Question
OBJECTIVES: Input player inputs using cout/cin (for C++) or printf/scanf (for C) Use nested if/else if/else statements to determine the outcome of the game Identify
OBJECTIVES:
Input player inputs using cout/cin (for C++) or printf/scanf (for C)
Use nested if/else if/else statements to determine the outcome of the game
Identify illegal inputs from the user and display an error message
Use a while loop to repeat the game
DESCRIPTION:
Write a program to score the rock-paper-scissor game. Each of two users types in either R,P, or S. The program then announces the winner as well as the basis for determining the winner: Paper covers rock, Rock breaks scissors, Scissors cut paper, or Nobody wins. Be sure to allow the user to use lowercase as well as uppercase letters. Your program should include a loop that lets the user play again until the user says she or he is done.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started