Handicap of a golfer Module 3 Pseudo Code
Because an official handicap requires up to 10 scores, you will need to modify the previous program to accept multiple scores, process the scores, and provide the user with their handicap.
Create a Do-While loop that runs up to 10 time that asks the user to enter up to 10 scores, which include the slope and rating for the course, and calculates the handicap for each score. You will need to use either parallel arrays or a two-dimensional array in order to store the score, slope and rating for each entry, and variables for the handicap accumulator and number of scores entered. The user will enter a 0 in score to exit the loop before entering 10 scores.
Once all scores have been entered, insert a new loop to read the array and display all of the scores. After you exit this loop, you need to display the average handicap with this as well.