Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

anyone can help me with this C++ lab 3 please! Lab 3 Rock, Paper, Scissors Obiectives: To use If-Statements to affect the logical flow ofyour

image text in transcribed

anyone can help me with this C++ lab 3 please!

Lab 3 Rock, Paper, Scissors Obiectives: To use If-Statements to affect the logical flow ofyour program To use Sivitch Statements To design a game and frun Instructions: You need to write a program to play "Rock: Paper, Scissors" _ Start by have the player input his/her choice 'R : : 'S' : or 'P' _ Hint, what data type should you use here? Then have the computer generate its choice randomly (0: 1: or 2). Remember to seed your random generator at the top of the main method. Now that you have the numeric choice, you will need to convert (using a Switch statement) it into a letter ' S ' : or Then determine the Ivinner of the game. Remember that Rock crushes Scissors: Paper covers Rock, and Scissors cuts Paper. Have fun with this one. If you are up for an extra challenge: consider how you would introduce lizard and Spock into the game for rock: paper: scissors, lizard, Spock Run: Make sure that you gain at least one win, one loss, and one tie. Do as many attempts as necessary to gain all three of these outcomes and submit all the attempts. Add a paragraph at the bottom ofthe output about how you would L11y test this program: considering that there are 9 possible outcomes in this program. Also discuss how you could enhance this program.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions