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.
Pars by Age and by Hole
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.