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 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 par sQuantity par s and Quantity par s Thus, Course Par Total equals Consider Player and Player are a team, and, Player and Player 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
