Handicap of a golfer Module 2 Pseudo Code
Because an official handicap requires 10 scores, you will need to modify the module 1 program to accept multiple scores, process the scores, and provide the user with their handicap.
Tell the user that they will need to enter 10 scores, which include the slope and rating for the course. Create a loop that will run 10 times. In this loop you will print the score the user just entered, calculate the handicap and add the handicap to a handicap total variable.
After you executed the loop 10 times; exit the loop, divide the total handicap by 10, and display the user’s average handicap.
There are no reviews yet.