Program #18

Code

   
    /// Name: Afaf Nabeeha
    /// Period: 7
    /// Program Name: Your Schedule
    /// File Name: Schedule.java
    /// Date Finished: 9/25/2015 public class Schedule
        
        
           public class Schedule
          {
              public static void main( String[] args )
              {
                  String course1, course2, course3, course4, course5, course6, course7;
                  String teacher1, teacher2, teacher3, teacher4, teacher5, teacher6, teacher7;
                  
                  course1 = "AP AB Calculus";
                  course2 = "French III";
                  course3 = "World History";
                  course4 = "Physical Education 10";
                  course5 = "Chemistry";
                  course6 = "English 2";
                  course7 = "Int. to Computer Programming";
                  
                  teacher1 = "Mr. Ball";
                  teacher2 = "Mona";
                  teacher3 = "Mr. Downing";
                  teacher4 = "Mr. Kruger";
                  teacher5 = "Mrs. Morse";
                  teacher6 = "Mr. Collins";
                  teacher7 = "Mr. Davis";
                  
                  System.out.println( "+------------------------------------------------+" ); 
                  System.out.println( "| 1 |    " + course1 + " |      " + teacher1 + " |" );
                  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 18