Question: In golf, par represents a standard number of strokes a player needs to complete a hole. Instead of using an absolute score, players can compare
In golf, par represents a standard number of strokes a player needs to complete a hole. Instead of using an absolute score, players can compare their scores on a hole to the par figure. Families can play nine holes of miniature golf at the Family Fun Miniature Golf Park. So that family members can compete fairly, the course provides a different par for each hole based on the player’s age. The par figures are shown in Table 8-6.

a. Develop the logic for a program that accepts a player’s name, age, and nine-hole score as input. Display the player’s name and score on each of the nine holes, with one of the phrases Over par, Par, or Under par next to each score.
b. Modify the program in Exercise 9a so that, at the end of the golfer’s report, the total score is displayed. Include the player’s total score in relation to par for the entire course.
Age 4 and under 8 5-7 7 7 8-11 6 5 12-15 5 4 16 and over 4 3 Table 8-6 Golf par values 1 8 200 00 3 9 8 6 4 3 Holes 4 7 6 5 4 3 5 5 5 4 3 2 6 7 6 5 4 3 7 8 7 5 3 2 8 9 5 8 5 4 3 3 200 00 9. 6 5 4 3
Step by Step Solution
3.56 Rating (160 Votes )
There are 3 Steps involved in it
ANSWER a Enter the players name John Enter the players age 8 Hole 1 Over par Hole 2 Par Hole 3 Under ... View full answer
Get step-by-step solutions from verified subject matter experts
