Question: For HW-02 you are to create an Eclipse project where you read in a file of information of 1,000 athletes into your system and build



For HW-02 you are to create an Eclipse project where you read in a file of information of 1,000 athletes into your system and build simple reports. The Athletes text file has the following fields that are separated by a tab: athletelD athleteType first_name last_name age email gender wins Create a FULL class that contains the above information. A "Full" class requirements are listed below. You will turn in 2 java files: Tester and Athlete Tester: 1. Methods o load(fileName) Send in the name of the file to be loaded o printAthletesByAgeRange(int from, int to) prints all athletes between and including the from and to o printAthletes(String gender) prints all athletes with given gender o printCounts() prints the number of Football Players prints the number of Runners prints the total number of wins for all athletes prints the total number of wins by gender o printAthletesWithWinsGreaterThan(String type, int winCount) note: if type = "runner" than count both Middle DistanceRunner and Long DistanceRunner prints all athletes that have more than winCount o printAllAthletes() Simply prints all 1000 athletes Athlete: 1. Properties 2. age email gender wins o athleteld (>0) o athleteType o first_name o last_name o age (> and = 0) 3. Constructors o Workhorse o String o String Array o Copy 4. Methods o clone) o equals() o toString() (make output neat and in columns ) 5. Getters / Setters o all getters / setters o Add data checks for athleteld, age, and wins athleteID athleteType first_name last name age email gender wins 1 LongDistanceRunner Ronna Tettersell 34 rtettersello@themeforest.net Female 94 2 Long DistanceRunner olag Hopkyns 26 ohopkynsl@dyndns.org Male 129 3 Hockey Player Joana ollerhad 17 jollerhad2@tmall.com Female 116 4 MiddleDistanceRunner Cchaddie Spooner 31 cspooner3@sphinn.com Male 72 5 HockeyPlayer Rutherford Jancik 32 rjancik4@sogou.com Male 175 6 HockeyPlayer Wilone Clee 27 wclee5@elegantthemes.com Female 196 7 Middle DistanceRunner Nollie Antrack 31 nantrack6@forbes.com Female 10 8 Footballplayer Rivkah Brawley 31 rbrawley7@abc.net.au Female 102 9 LongDistanceRunner Lammond Sibborn 30 lsibborn8 @mozilla.com Male 152 10 LongDistanceRunner Baldwin Kingsnode 18 bkingsnode 9@ifeng.com Male 154
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
