Assignment # 18 and Your Schedule

Code

      /// Name: Tommy Oyuntseren
      /// Period: 7
      /// Program Name: YourSchedule
      /// File Name: YourSchedule.java
      /// Date Finished: 9/28/15

public class YourSchedule
  {
      public static void main( String[] args )
      {
          // creating 16 variables is too much
          String[] classes = {"English 4","T.A", "Math Analysis", "AP Stat","Government", "AP Environmental Science","Intro Comp prog"};
          String[] teachers = {"Mrs. Gunnison","Mrs. Munroe","Mr. Franks", "Mr. Thompson", "Mr. Avicolli", "Mr. Mr. Merken", "Mr. Davis"};
          
          System.out.println();
          for (int i = 0; i < 7; i++)
          {
              System.out.println(" "+i+".      "+classes[i]+"  by  "+teachers[i]);
          }
          System.out.println();
      }
 }
   
   

  

Picture of the output

Assignment 18