Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

using java eclips Create a Java program to store the team standings for a NCAA M

ID: 3850779 • Letter: U

Question

using java eclips

Create a Java program to store the team standings for a NCAA MAC Conference game of your choice. Example: Last year's 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: Team Name State Division Win Loss College 3 4 0 Akron Zips OH E DIN 1 51 Cardinals 1 Ball State Bowling Falcons Green Bulls NY 1 51 3 Buffalo Chippewas MI Eastern Eagles Michigan Golden Kent State Flashes 7 Miami RedHawks OH E 5 21 Huskies 9 Ohio Bobcats OH E 5 11 10 Toledo Rockets DOH 5 11 11 UMass Minutemen TMA E 0 4 Western Broncos Michigan

Explanation / Answer

CODE:

########################################################################################
class Conference{
String college[]={"Akron","Ball State","Bowling Green","Buffalo","Central Michigan","Eastern Michigan","Kent State","Miami","Northern Illions","Ohio","Toledo","UMass","western Michigan"};
String teamName[]={"Zips","Cardinals","Falcons","Bills","Chippewas","Eagles","Golden Flashes","RedHawks","Huskies","Bobcats","Rockets","Minutemen","Brobocos"};
String state[]={"OH","IN","OH","NY","MI","MI","OH","OH","IL","OH","OH","MA","MI"};
char div[]={'E','W','E','E','W','W','E','E','W','E','W','E','W'};
float win[]={3,1,1,1,2,3,2,5,3,5,5,0,6};
float loss[]={4,5,5,5,4,3,4,2,3,1,1,4,0};
float[] winPer = new float[13];

void winPercentage(){
  for(int i=0;i<13;i++){
   winPer[i]=(win[i]/(win[i]+loss[i]))*100;
   }
}


void table(){
  System.out.println("College   Team name  State  Division Win Loss Win%");
  for(int i=0;i<13;i++){
   System.out.println(college[i]+"   "+teamName[i]+"   "+state[i]+"  "+div[i]+"  "+win[i]+" "+loss[i]+" "+winPer[i]);
   
   
  }
}

void displayMi(){
  System.out.println(" (1) Teams from MI");
  for(int j=0;j<13;j++){
   if("MI" == state[j]){
    System.out.println(" "+teamName[j]);
   }
  }
}
void displayOH(){
  System.out.println(" (2) Teams from OH");
  for(int j=0;j<13;j++){
   if("OH" == state[j]){
    System.out.println(" "+teamName[j]);
   }
  }
}
void displayNY(){
  System.out.println(" (3) Teams from NY");
  for(int j=0;j<13;j++){
   if("NY" == state[j]){
    System.out.println(" "+teamName[j]);
   }
  }
}

void displayW(){
  System.out.println(" (4) Teams from West Division");
  for(int j=0;j<13;j++){
   if('W' == div[j]){
    System.out.println(" "+teamName[j]);
   }
  }
}
void display3Wins(){
  System.out.println(" (5) Teams having 3 wins ");
  for(int j=0;j<13;j++){
   if(3 == win[j]){
    System.out.println(" "+teamName[j]);
   }
  }
}
void displayHighWin(){
  System.out.println(" (6) Team having highest win% ");
  float com = winPer[0];
  int index = 0;
  for(int j=0;j<13;j++){
   if(com <= winPer[j]){
                  com = winPer[j];
                  index= j;
             }
   
  }
  System.out.println(" "+teamName[index]);
}
public static void main(String args[]){
  Conference c=new Conference();
  c.winPercentage();
  c.table();
  c.displayMi();
  c.displayOH();
  c.displayNY();
  c.displayW();
  c.display3Wins();
  c.displayHighWin();
}
}

###################################################################################33

OUTPUT:
####################################################################################
College   Team name  State  Division Win Loss Win%
Akron   Zips   OH  E  3.0 4.0 42.857143
Ball State  Cardinals  IN  W  1.0 5.0 16.666668
Bowling Green  Falcons   OH  E  1.0 5.0 16.666668
Buffalo   Bills   NY  E  1.0 5.0 16.666668
Central Michigan Chippewas  MI  W  2.0 4.0 33.333336
Eastern Michigan Eagles   MI  W  3.0 3.0 50.0
Kent State  Golden Flashes  OH  E  2.0 4.0 33.333336
Miami   RedHawks  OH  E  5.0 2.0 71.42857
Northern Illions Huskies   IL  W  3.0 3.0 50.0
Ohio   Bobcats   OH  E  5.0 1.0 83.33333
Toledo   Rockets   OH  W  5.0 1.0 83.33333
UMass   Minutemen  MA  E  0.0 4.0 0.0
western Michigan Brobocos  MI  W  6.0 0.0 100.0

(1) Teams from MI
Chippewas
Eagles
Brobocos

(2) Teams from OH
Zips
Falcons
Golden Flashes
RedHawks
Bobcats
Rockets

(3) Teams from NY
Bills

(4) Teams from West Division
Cardinals
Chippewas
Eagles
Huskies
Rockets
Brobocos

(5) Teams having 3 wins
Zips
Eagles
Huskies

(6) Team having highest win%
Brobocos