Assignment #18 Your Schedule

Code

    /// Name: Matthew Lorence
    /// Period: 5
    /// Program Name: Your Schedule
    /// File Name: YourSchedule.java
    /// Date Finished:9/28/15
    
    public class YourSchedule
    {
        public static void main( String[] args )
        {
            
            String gov, calc, stat, eng, compsci, engineering;
        
            String a, d, s, r, b;
        
            gov = "Government";
            calc = "AP Calculus BC";
            stat = "Ap Statistics";
            eng = "English IV";
            compsci = "Computer Programming";
            engineering = "Enginnering & Applied Physics";
        
            a = "Mr. Avicolli";
            d = "Mr. Davis";
            s = "Ms. Sillavo";
            r = "Ms. Reeves-Hampton";
            b = "Mr. Becker";
    
            System.out.println( "+------------------------------------------------------------------+"  );
            System.out.println( "| 1 |                               " + gov + "|       "    + a + " |" );
            System.out.println( "| 2 |                           "    + calc + "|          " + d + " |" );
            System.out.println( "| 3 |                            "   + stat + "|        "   + s + " |" );
            System.out.println( "| 4 |                               " + eng + "| "          + r + " |" );
            System.out.println( "| 5 |                     "       + compsci + "|          " + d + " |" );
            System.out.println( "| 6 |            "            + engineering + "|         "  + b + " |" );
            System.out.println( "+------------------------------------------------------------------+"  );
        }
    }
        
    

Picture of the output

Assignment 18