Question: Hi please solve the extra credit question regarding the question 3 with python please as soon as possible. EXTRA CREDIT Nested for loops with selection



Hi please solve the extra credit question regarding the question 3 with python please as soon as possible.
EXTRA CREDIT Nested for loops with selection statements (0.6 points) In Problem 3, we designed a program to keep score and print outputs for a single player of mini-golf. In practice, mini-golf can be played with up to 4 players. Modify your script from Problem 3 so that the program first asks for number of players. For each player, ask for the player name, then enter player strokes with corresponding outputs for each hole, then print how many holes the player needed to complete the course. An empty line should print before player entries and between each player. You can assume that the user will always enter integers between 1 and 4 for number of players and number of strokes. Below are some sample runnings of the program; underlines indicate user input. Example 1 How many players? 3 Player 1 name: Tomisin Hole 1: 5 Bogey! Hole 2:4 Birdie! Hole 3: 3 Par! Hole 4: 2 Hole 5: 1 Hole-in-one! Tomisin completed the course in 15 strokes. Player 2 name: Savannah Hole 1:1 Hole-in-one! Hole 2:2 Hole 3:3 Par! Hole 4:4 Birdie! Hole 5:5 Par! Savannah completed the course in 15 strokes. Player 3 name: Susan Hole 1:5 Bogey! Hole 2: 5 Par! Hole 3: 5 Hole 4:5 for loops, iterating over lists, nested selection statements (4 points) In mini golf, players use their putters to hit the golf ball from the tee area to the marked hole. Just like traditional golf, a player's score is computed from the number of strokes needed for each hole. There are also several terms used to describe the number of strokes needed for each hole. - Par is expected number of strokes a golfer will need to sink the ball into the hole. - An eagle is a score of 2 under par. - A birdie is a score of 1 under par. - A bogey is a score of 1 over par. - A hole-in-one is scored with 1 stroke. Par is different for each hole. For example, a par-5 hole describes a hole that should require about five strokes to complete. If a hole is par- 5 and you sink your ball... - ...in three shots, you've earned an eagle. - ...in four shots, you've earned a birdie. - ...in five shots, you've parred the hole. - ...in six shots, you've earned a bogey. Classically, there are 18 holes in classical mini-golf. For the purpose of this problem, we have simplified it down to 5 holes. Assignment5_variables.py includes a list (hole_pars) which stores the par for each hole in order. Write a program that will ask the user to enter the number of strokes for each hole. If applicable, after each user entry, print whether the user used a special number of strokes. After all five holes have been completed, print the total number of strokes. Note that hole number should increase for each user input and that if a player sinks a hole-in-one, no other message should print. You can assume that the user will always enter an integer value. Below are some sample runnings of the program; underlines indicate user input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
