/* ********************* * * TournamentScores - contains scores for all golfers in a tournament * * Author: Your name * Date: 2019-Apr * ***********************/ public class TournamentScores { final int NUM_HOLES=18; private String tournamentName; private GolferScore[] playerScores; // ---------------------------- // constructor - takes a filename and reads the data from the file // into an array of GolferScores // // file format: // first line of the file contains: // the name of the tournament followed by a comma, then the number of golfers // second line of the file contains: // the name of the course followed by the pars for 18 holes, all comma separated // the rest of the lines of the file contain: // the name of a golfer followed by their scores for 18 holes, all comma separated public TournamentScores(String fileName) { } // ---------------------------- // getName - returns the name of the tournament public String getName() { } // ---------------------------- // averageScore - returns the average score of all golfers in the array public double averageScore() { } // ---------------------------- // topThree - returns a String with "Top Three Golfers" followed by // the toString for the top three golfers in the tournament public String topThree() { } // ---------------------------- // toString - returns a String with the name of the tournament followed by // the toString for every golfer in the tournament public String toString() { } }