Because all users may not have 10 scores and we want to


Because all users may not have 10 scores and we want to keep the scores they entered for use at a later date, the above program will have to be modified to add a menu that lets the user decide how many scores they will enter, and a process to save the scores to a file. Set up a menu that will ask the user to enter a score, slope and rating, or to enter 0 for the score when they are done.

The program will then need to check for a value of 0 entered by the user to exit the input loop.

You will need to increment a counter each time the user does not enter 0 so that you know how many entries they have made.

Prior to the loop you previous created to populate the array, add logic to create a new file with the user's name as the file name. Within the loop you previously created to populate the array, add logic to save each score to the user's file. Once the user enters a 0 you will exit the loop, close the file and execute the code as previously designed until you have displayed all of the scores and the average handicap.

Extra Credit: Add logic to the program to search for an existing file with the user's name. If you find the file, welcome the user back and then add the new scores to the existing file. If you don't find a file with the user's name, welcome them to the program and create a new file.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Because all users may not have 10 scores and we want to
Reference No:- TGS0971316

Expected delivery within 24 Hours