Assignemnt #18 Your Schedule
Code
///Name: Prooz Fereydouni
///Period: 7
///Project Name: Your Schedule
///File Name: YS.java
///Date: 9/18/2015
public class YS
{
public static void main( String[] args )
{
String class1, class2, class3, class4, class5, class6, class7, teacher1, teacher2, teacher3, teacher4, teacher5, teacher6, teacher7;
class1 = "French 2";
class2 = "English 2";
class3 = "Physics";
class4 = "AP Chemistry";
class5 = "Physical Education";
class6 = "Algebra 2/Trigonometry Honors";
class7 = "Introduction to Computer Science";
teacher1 = "Mrs. Mulhair";
teacher2 = "Mr. Heard";
teacher3 = "Mr. Becker";
teacher4 = "Mr. Morgan";
teacher5 = "Mr. Kruger";
teacher6 = "Mr. Greenwood";
teacher7 = "Mr. Davis";
System.out.println( "+------------------------------------------------------------+" );
System.out.println( "| 1 | " + class1 + " | " + teacher1 + " |" );
System.out.println( "| 2 | " + class2 + " | " + teacher2 + " |" );
System.out.println( "| 3 | " + class3 + " | " + teacher3 + " |" );
System.out.println( "| 4 | " + class4 + " | " + teacher4 + " |" );
System.out.println( "| 5 | " + class5 + " | " + teacher5 + " |" );
System.out.println( "| 6 | " + class6 + " | " + teacher6 + " |" );
System.out.println( "| 7 | " + class7 + " | " + teacher7 + " |" );
System.out.println( "+------------------------------------------------------------+" );
}
}
Picture of the output