In the Game Zone section of Chapter 5, you designed a guessing game in which the application

Question:

In the Game Zone section of Chapter 5, you designed a guessing game in which the application generates a random number and the player tries to guess it. After each guess, 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, you displayed 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. After a player plays the game exactly five times, save the best (lowest) score from the five games to a file. If the player’s name already exists in the file, update the record with 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 best scores stored in the file.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: