Assignment #18

Code

    /// Name: Ian Stanko
    /// Period: 5
    /// Program Name: YourSchedule
    /// File Name: YourSchedule.java
    /// Date Finished: 9/26/2015
    
  public class YourSchedule
  {
      public static void main( String[] args )
      {
          String course2, course3, course4, course5, course6, course7, 
                  teacher2, teacher3, teacher4, teacher5, teacher6, teacher7;
          
          course2="AP US History";
          course3="English III";
          course4="Physics";
          course5="Intro to Computer Programming";
          course6="Pre Calculus";
          course7="Wood Tech";
          teacher2="Mrs. Harvey";
          teacher3="Ms. Munroe";
          teacher4="Mr. Becker";
          teacher5="Mr. Davis";
          teacher6="Mrs. Sillavo";
          teacher7="Mr. Blank";
    
          System.out.println( "+--------------------------------------------------------------------------+" );
          System.out.println( "| 2 |                  " + course2 + "                        | " + teacher2 + "  |" );
          System.out.println( "| 3 |                  " + course3 + "                          | " + teacher3 + "   |" );
          System.out.println( "| 4 |                  " + course4 + "                              | " + teacher4 + "   |" );
          System.out.println( "| 5 |                  " + course5 + "        | " + teacher5 + "    |" );
          System.out.println( "| 6 |                  " + course6 + "                         | " + teacher6 + " |" );
          System.out.println( "| 7 |                  " + course7 + "                            | " + teacher7 + "    |" );
          System.out.println( "+--------------------------------------------------------------------------+" );
      }
  }

    

Picture of the output

Assignment 1