
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562In the Game Zone section of Chapter 5, you designed a guessing game in which theapplication generates a random number and the player tries to guess it. After eachguess, you displayed a message indicating whether the player’s guess was correct,too high, or too low. When the player eventually guessed the correct number, youdisplayed a score that represented a count of the number of required guesses.Modify the game so that when it starts, the player enters his or her name. Aftera player plays the game exactly five times, save the best (lowest) score from the fivegames to a file. If the player’s name already exists in the file, update the recordwith the new lowest score. If the player’s name does not already exist in the file,create a new record for the player. After the file is updated, display all the bestscores stored in the file.
Why don’t you like this exercise?
Other