In golf, par represents a standard number of strokes a player needs to complete a hole. Instead

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

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