Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Python program and save it in your Prac 9 directory. In its original form, each of the two players simultaneously chooses one

Create a new Python program and save it in your Prac9 directory.
In its original form, each of the two players simultaneously chooses one of rock, scissors or paper. Rock beats scissors, paper beats rock and scissors beats paper. If both players choose the same, it is a draw.
You will create a program to play the game, human against computer. The human player will select one of three options: Rock, Scissors or Paper. The computer will then make its choice randomly using the random number generator. The computer also decides and displays who has won (for example, by displaying one of these messages: "I win", "You win", "Draw").
After you generate a random number for the computer's choice, you will need to use some if statements to decide which word to display.
To decide who has won, you will need to use some if-else statements!
a) Write the pseudo-code for the game and then get a demonstrator to check your pseudo-code before going on to the next step.
b) Now create the program using your pseudo-code.
c) Test the program with different inputs to make sure the results are what you expect.
image text in transcribed

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

Describe the seven standard parts of a letter.

Answered: 1 week ago

Question

Explain how to develop effective Internet-based messages.

Answered: 1 week ago

Question

Identify the advantages and disadvantages of written messages.

Answered: 1 week ago