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

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!