Question: Please do it as java progect. Create a Java program to store the team standings for a NCAA MAC Conference game of your choice. Example:
Please do it as java progect.
Create a Java program to store the team standings for a NCAA MAC Conference game of your choice. Example: Last years mid-season, in-conference games played by the MAC (Mid-American Conference) NCAA football teams, utilizing the following 6 parallel arrays:
college, teamName, state, div, win, loss
Create the parallel arrays with the appropriate data types
Populate the arrays with the following data:
|
| College | Team Name | State | Division | Win | Loss |
| 0 | Akron | Zips | OH | E | 3 | 4 |
| 1 | Ball State | Cardinals | IN | W | 1 | 5 |
| 2 | Bowling Green | Falcons | OH | E | 1 | 5 |
| 3 | Buffalo | Bulls | NY | E | 1 | 5 |
| 4 | Central Michigan | Chippewas | MI | W | 2 | 4 |
| 5 | Eastern Michigan | Eagles | MI | W | 3 | 3 |
| 6 | Kent State | Golden Flashes | OH | E | 2 | 4 |
| 7 | Miami | RedHawks | OH | E | 5 | 2 |
| 8 | Northern Illinois | Huskies | IL | W | 3 | 3 |
| 9 | Ohio | Bobcats | OH | E | 5 | 1 |
| 10 | Toledo | Rockets | OH | W | 5 | 1 |
| 11 | UMass | Minutemen | MA | E | 0 | 4 |
| 12 | Western Michigan | Broncos | MI | W | 6 | 0 |
Output:
Generate a report of the entire data set as shown above, formatted into 7 columns, adding a calculated column (the 7th column) with the win percentage (wins/total games) stored in a variable winPct.
College Team Name State Division Win Loss Win %
Then, use methods and the same report format to generate 6 reports as follows. Create additional functions where you pass the array and any other parameter(s).
Display only the teams from MI
Display only the teams from OH
Display only the teams whose state starts with some letter of your choice
Display only the West division teams
Display the teams with exactly 3 wins
Display the team with the highest win percentage (find max of winPct)
This will require repeating the looping statement to generate the first list 4 more times, but using an if statement within the loop to determine whether or not to print the team based on the criteria above.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
