Question: Please answer in MATLAB code. Thanks! Problem 4: The handicap differential (HCD) for a round of golf is calculated from the formula: 113 (Score Course

Please answer in MATLAB code. Thanks!  Please answer in MATLAB code. Thanks! Problem 4: The handicap differential

Problem 4: The handicap differential (HCD) for a round of golf is calculated from the formula: 113 (Score Course Rating) Course Slope HCD The courserating 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 # Rounds played 15-16 N 11-1 19 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. Slope Score Ratin 71.6 72.8 69.7 122 103 116 81 70.9 12.3 91 70.3 70.9 73.1 68.2 74.2 109 132 115 135 94 78 103 722 71 73 71.6 74.0 68.2 122 139 109 Hand in your MATLAB program and output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!