Question: Create a program where the player can complete against the computer ( who chooses randomly from the 5 choices ) . The game should last

Create a program where the player can complete against the computer (who chooses randomly from the 5 choices). The game should last for 5 rounds (each round is a single choice by the player and computer). After each round, the program should report the score for the round and the current total score. At the end a comment should be made about how well the player did with a total score of less than 20 resulting in a message about below average performance and a score greater than 35 in a message about above aveabove-averagerage performance.
Lab questions:
Based on testing, what do you think is the optimal strategy?
How would your strategy change if the points for wins and ties were doubled?halved?
How would you change your approach to programming this assignment if the number of choices were increased from 5 to 25 or 50?

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 Databases Questions!