Question: NEEDS TO BE IN PYTHON! Design and implement a program to process golf scores. The scores of four golfers are stored in a file called

NEEDS TO BE IN PYTHON!

Design and implement a program to process golf scores. The scores of four golfers are stored in a file called golf.txt (located on Moodle). Each line represents one hole, and the file contains 18 lines. Each line contains five values: par for the hole followed by the number of strokes each golfer used on that hole. Store the total for par in the variable par. Store the totals for the players in a list called players. Determine the winner and produce a table showing how well each golfer did.

Example output:

 Par for the course: 73 Player 1: 92 Player 2: 86 Player 3: 90 Player 4: 91 The winner is Player 2!

Here is the Scores from text file.

3 3 4 3 3 4 4 6 5 6 4 6 4 4 5 4 7 5 6 6 3 4 3 4 4 4 6 5 5 6 5 7 5 7 6 4 5 6 5 4 4 5 4 6 7 5 6 6 6 6 3 3 5 4 3 4 5 4 4 4 5 6 7 6 5 4 5 4 4 6 4 5 5 7 4 5 5 4 5 6 4 4 4 4 5 4 6 5 5 5

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!