Question: Need help with this python program please . ! Write a program that will store the golf scores for someone. Since maybeu have a golf

Need help with this python program please . !  Need help with this python program please . ! Write a
program that will store the golf scores for someone. Since maybeu have

Write a program that will store the golf scores for someone. Since maybeu have a golf course again sometime in the future, we'll assume we can use this for your scores from a future round at Ray Richards Golf course. This means the golfer will be playing 9 holes Part 1 Ask for the score for each hole. Do not accept a value less than 1 or greater than 10, the value must be between 1 and 10 inclusively. Store all the scores in a text file. As the user for the name of the file. Part 2 Ask for a file name and check whether it exists or not.If the fle exists. read all the values from the file and store them in a list. If the file does not exist print "There is no such tile and end the program. Par for the Ray Richard golf course is 36 (I think, go with it). Once the file has been read tell the golfer if they scored below par (less than 36 total strokes), par (exactly 36 total strokes), or over par (more than 36 strokes total). Also tell the user how much above or below par they were for the round To determine the overall number of strokes for the round you MUST write a function with the following function header: def numberofStrokes (theList): This function MUST accept a list, the list with the scores from the round, and it MUST return the total for the round. This is the only acceptable means of determining the total number of strokes for the round. Tell the user congratulations if they had a score of 1 for any hole (a "hole-in-pone'). IF any of the scores in the list are 1 write to the screen "Congratulations on your hole-in- one," or something similar. Do not write anything if they didn't get a hole-in-one, it's very rare

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!