Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 Write a program using the python programming language to satisfy all the following requirements. (Your answer MUST provide the code and it must

image text in transcribed

image text in transcribed

Part 1 Write a program using the python programming language to satisfy all the following requirements. (Your answer MUST provide the code and it must reproduce the output on the next page. Please use an IDE like PyCharm. You may import 'math' and 'random' only if needed.) [outline: You will make a Rock Paper Scissor game, Human Vs Computer, the first one to three wins.] i) Make sure you #comment your code and that your code is clear and easy to read. Your code must run with no error messages, and it should be less than 100 lines. [20] ii) The program should ask the user to pick Rock (R), Paper (P) or Scissor (S). You can assume the user will only ever type R, P or s correctly but sometimes they may typer, p or s by mistake. The program should correct this automatically. [10] iii) The program will randomly pick R, P or S. [5] iv) The user will score +1 if s/he wins the round and the Computer will score +1 if it wins the round, no scores for draws. Remember to print what the computer picked. [15] v) The program will end when someone reaches a score of 3. Then it will say who won the game. [5] vi) The program should print the score at the start of each round. [5] vii) And the program should print the "Round Number" each time too [5] INDICATIVE DEMOSTRATION OF RUNNING THE CODE # # # Your Score is O Computer's Score is ROUND: 1 Please select RP or S: R Computer picked S You Win # # # Your Score is 1 | Computer's Score is 8 : : : ROUND: 2 Please select R, P or S: P Computer picked R You Win # # # Your Score is 2 | Computer's Score is o ### ROUND: 3 Please select R, P or S: S Computer picked R Computer Wins # # # Your Score is 2 | Computer's Score is 1 !!! # ROUND: 4 Please select RP or S: r Computer picked P Computer Wins # # # Your Score is 2 | Computer's Score is 2 ### ROUND: 5 Please select R, P or S: s Computer picked P You Win !!!! YOU WIN THE GAME

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_2

Step: 3

blur-text-image_3

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions