Question: Make sure its in MATLAB code Q Search Problem 4: The handicap differential (HCD) for a round of golf is calculated from the formula: HCD
Q Search Problem 4: The handicap differential (HCD) for a round of golf is calculated from the formula: HCD 113 (Score-Course Rating) Course Slope The course rating and the slope are measures of how difficult a particular course is. A golfer's handicap is calculated from a certain number N of their best (lowest) handicap scores according to the following table. # Rounds played 5-6 7-8 9-10 11-12 13-14 Rounds played 15-16 17 18 19 20 7 4 10 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 players score. Each row corresponds to one round. The program displays the person's handicap. Execute the program for players with the following records. Rating122 71.6 72.8 69.7 70.3 Slope Score 118 103 115 85 87 83 81
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
