+1443 776-2705 panelessays@gmail.com

Golf Scores

1. A program that will read each player’s name and golf score as keyboard input, and then save these as records in a file named golf.txt. (Each record will have a field for the player’s name and a field for the player’s score.)

The input function should contain a sentinel loop.  The input of a score of negative 1 should terminate the input process and write an error message.

2. A program that reads the records from the golf.txt file and displays them. At the end of displaying all of the individual scores, the program should display the following:

Average of all scores

The name and score of the player with the highest score

The name and score of the player with the lowest score

3 4 4 8 5 3 4 3 5 7 3 3 4 4 5 6 5 4 5 8 4 3 4 6 3 2 4 4 5 6 4 3 4 4 3 5