The handicap differential (HCD) for a round of golf is calculated from the formula: HCD = (Score-

Question:

The handicap differential (HCD) for a round of golf is calculated from the formula:
HCD = (Score- Course Rating)/Course Slope × 113
The course rating and the slope are measures of how difficult a particular course is. A golfers handicap is calculated from a certain number N of their best (lowest) handicap scores according to the following table.
For example, if 13 rounds have been played, only the best five handicaps are used. A handicap cannot be computed for fewer than five rounds. If more than 20 rounds have been played, only the 20 most recent results are used.
Once the lowest N handicap differentials have been identified, they are averaged and then rounded down to the nearest tenth. The result is the player's handicap. Write a program in a script file that calculates a person's handicap. The program asks the user to enter the golfers record in a three columns matrix where the first column is the course rating, the second is the course slope, and the third is the player's score. Each row corresponds to one round. The program displays the person's handicap. Execute the program for players with the following records.
(a)
The handicap differential (HCD) for a round of golf is

(b)

The handicap differential (HCD) for a round of golf is
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

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