/** Football_2.java * * @author Rob Atlas * * This class will contain variables for different ways to score in football * and for two teams' scores */ public class Football_2 { public static void main(String[] args) { final int TOUCHDOWN=6; final int EXTRA_POINT=1; final int TWO_POINT_CONVERSION=2; final int FIELD_GOAL=3; final int SAFETY=2; int homeTeamScore=0; int awayTeamScore=0; homeTeamScore=TOUCHDOWN+EXTRA_POINT+FIELD_GOAL; awayTeamScore=FIELD_GOAL*3; System.out.println("The home team has " + homeTeamScore + " points"); System.out.println("The away team has " + awayTeamScore + " points"); System.out.println("The home team wins!"); } }