Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming Assignment #1: Guessing Game (Due before class on Friday, Jan. 31) Write a program to implement the following high-low number guessing game. Use from

Programming Assignment #1: Guessing Game (Due before class on Friday, Jan. 31) Write a program to implement the following high-low number guessing game. Use "from random import randint" and the "randint(1,100)" function to generate a random number between 1 and 100. (Hint: For testing your game it's good to print the answer that the player should be guessing. Of course when it's all working you will want to comment out that print statement.) Let the user try to guess the number and say whether the guess is too high, too low, or correct. Let the user try to guess over and over until they get the right answer (or run out of guesses). Keep score and report how many tries the user needed. Implement a way for the player to fail at the game. (Perhaps only 3-4 guesses allowed?) For a B: Let the player play multiple times and keep track of the high score of all tries. For an A: Use a file to store the top three highest scores and player names, so that they get remembered even when the program is stopped and restarted. MUST BE DONE ACCORDING TO A GRADE GUIDLINES. MUST BE DONE USING PYTHON.

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago