Assignment #18 and Your Schedule
Code
/// Name: Graham Pollock
/// Period: 5
/// Program Name: Your Schedule
/// File Name: YourSchedule.java
/// Date Finished: 9/16/2015
public class YourSchedule
{
public static void main( String[] args )
{
String Period1, Period2, Period3, Period4, Period5, Period6, Period7, Teacher1, Teacher2, Teacher3, Teacher4, Teacher5, Teacher6, Teacher7;
Period1 = "AP Psychology";
Period2 = "Spanish 4";
Period3 = "Math Analysis";
Period4 = "AP US History";
Period5 = "Computer Programming";
Period6 = "English III";
Period7 = "Physics";
Teacher1 = "Ms. Heckman";
Teacher2 = "Mrs. Amaro";
Teacher3 = "Mr. Franks";
Teacher4 = "Mrs. Harvey";
Teacher5 = "Mr. Davis";
Teacher6 = "Mr. Heard";
Teacher7 = "Mr. Becker";
System.out.println( "+----------------------------------------------+" );
System.out.println( "| 1 | " + Period1 + " | " + Teacher1 + " |" );
System.out.println( "| 2 | " + Period2 + " | " + Teacher2 + " |" );
System.out.println( "| 3 | " + Period3 + " | " + Teacher3 + " |" );
System.out.println( "| 4 | " + Period4 + " | " + Teacher4 + " |" );
System.out.println( "| 5 | " + Period5 + " | " + Teacher5 + " |" );
System.out.println( "| 6 | " + Period6 + " | " + Teacher6 + " |" );
System.out.println( "| 7 | " + Period7 + " | " + Teacher7 + " |" );
System.out.println( "+----------------------------------------------+" );
}
}
Picture of the output