PROGRAMMING AND CODE


Assignemnt #18

Code

  /// Name: Justin Li
  /// Period 7
  /// Program Name: Schedule
  /// File Name: Schedule.java
  /// Date Finished: 9/21/15

  class Schedule {
  
      public static void main(String[]args) {
      
          String teach1, teach2, teach3, teach4, teach5, teach6, teach7, course1, course2, course3, course4, course5, course6, course7;
          
          teach1 = "Mr. Collins";
          teach2 = "Mr. Ball";
          teach3 = "Ms. Harvey";
          teach4 = "Mr. Becker";
          teach5 = "Ms. Heckmann";
          teach6 = "Mr. Schreiber";
          teach7 = "Mr. Davis";
          course1 = "Engrish III";
          course2 = "Ap Calc AB";
          course3 = "APUSH";
          course4 = "Physics";
          course5 = "Ap Psychology";
          course6 = "Honors Japanese 4";
          course7 = "Intro to Comp";
              
          System.out.println("1 | " + teach1 + " | " + course1);
          System.out.println("2 | " + teach2 + " | " + course2);
          System.out.println("3 | " + teach3 + " | " + course3);
          System.out.println("4 | " + teach4 + " | " + course4);
          System.out.println("5 | " + teach5 + " | " + course5);
          System.out.println("6 | " + teach6 + " | " + course6);
          System.out.println("7 | " + teach7 + " | " + course7);
          

          
          
      }
  }
    

Picture of the output

Assignment 1