Question: Design and implement a program to process golf scores. Here the lowest score wins. Keyboard data entry the integer scores of four golf players to

Design and implement a program to process golf scores. Here the lowest score wins.
Keyboard data entry the integer scores of four golf players to be stored in a text file called "scoreCard.txt". Each text file row line represents one hole, and the file contains 18 lines. Each line contains five values: integer par value for the golf hole; followed by the integer number of strokes each golfer used on that hole. A golf hole score has to have a minimum value of one. There should be (Quantity 4) par 3's,(Quantity 4) par 5's, and (Quantity 10) par 4's. Thus, Course Par Total equals 72. Consider Player1 and Player2 are a team, and, Player3 and Player4 are a team.
Read the text file data to store the totals by each hole, for the individual players, and for the teams use ArrayList for Java.
Determine the winning team, and the player with overall lowest score (who may or may not be on the winning team). Produce a tabular output report by golf hole showing golf hole par and how each playerperformed by score on the golf hole, and how the team performed by score on the golf hole. Show running cumulative results for teams and individual players.
Sample score card where each line represents one player, and the vertical columns represent each golf hole.
Design and implement a program to process golf

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 Programming Questions!