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

//File NFLGameDay5.java import java.util.Scanner.*; public class NFLGameDay5 { p

ID: 3651806 • Letter: #

Question

//File NFLGameDay5.java import java.util.Scanner.*;
public class NFLGameDay5 {
public static void main (String [] args){
//Construct Team Falcons NFLTeam5 falcons = new NFLTeam5("Falcons"); System.out.print("How many players Falcons own: "); Scanner input = new Scanner (System.in); int numberOfPlayers = input.nextInt();
// Prompt user to enter players into the Team for (int i = 0; i < numberOfPlayers; i++) {
System.out.print("Enter the name of Player #" + (i + 1) + ": ");
String playerName = input.next();
falcons.addAPlayer(playerName);
}
//Construct Team Steelers
//Simulate a game
falcons.lossAgame(steelers);
System.out.println (falcons);
System.out.println (steelers);
}//end of Main method
}//end of class definition
// File NFLTeam5.java
public class NFLTeam5{
private String[] sPlayerArray;
private int nTotalNumPlayers;
private int win;
private int loss;
private String TeamName;
public NFLTeam5(String eName){
win=0;
loss=0;
TeamName = eName;
nTotalNumPlayers=0;
}
public void winAgame(){
win++;
}
public void winAgame(NFLTeam5 teamB){
win++;
teamB.lossAgame();
}
public void lossAgame(){
loss++;
}
public void lossAgame(NFLTeam5 teamB){
loss++;
teamB.winAgame();
}
public int getWinNum(){ return win; }
public int getLossNum(){ return loss; }
public String getName() { return TeamName; }
public int getTotalPlayersNum (){ return nTotalNumPlayers; }
public void deleteAPlayer (String playerA){ nTotalNumPlayers--; String [] sPlayerArrayTemp=new String [nTotalNumPlayers]; for (int i =0,j=0; i< nTotalNumPlayers; i++,j++) { if (sPlayerArray[j]!=playerA) sPlayerArrayTemp[i]=sPlayerArray[j]; else sPlayerArrayTemp[i]=sPlayerArray[++j];
} sPlayerArray=sPlayerArrayTemp; }
public String toString (){ String sOutput=TeamName + " Win/Loss: " + win + " / "+ loss + " games "; sOutput = sOutput+ " " + "Number of Players is: " + nTotalNumPlayers + " "; for (int i =0; i< nTotalNumPlayers; i++) sOutput = sOutput + sPlayerArray[i] + " ";
return sOutput;
}
}//end of class definition

Explanation / Answer

what's the question???????????