Assignemnt #18 Your Schedule
Code
/// Name: Brendan Miller
/// Period: 5
/// Program Name: Your Schedule
/// File Name: YourSchedule.java
/// Date Finished: 9/29/2015
public class YourSchedule
{
public static void main( String[] args )
{
String teacher1, teacher2, teacher3, teacher4, teacher5, class1, class2, class3, class4, class5;
int course1, course2, course3, course4, course5;
course1 = 1;
course2 = 2;
course3 = 3;
course4 = 4;
course5 = 5;
teacher1 = "Mr. Ball";
teacher2 = "Mr. Ridenour";
teacher3 = "Mr. Bremer";
teacher4 = "Mr. Morgan";
teacher5 = "Mr. Davis";
class1 = "AP Calc AB";
class2 = "English 4";
class3 = "Econ";
class4 = "AP Chem";
class5 = "Intro to Comp Prog";
System.out.println( "+--------------------------------------+" );
System.out.println( "| " + course1 + " | " + class1 + " | " + teacher1 + " |");
System.out.println( "| " + course2 + " | " + class2 + " | " + teacher2 + " |");
System.out.println( "| " + course3 + " | " + class3 + " | " + teacher3 + " |");
System.out.println( "| " + course4 + " | " + class4 + " | " + teacher4 + " |");
System.out.println( "| " + course5 + " |" + class5 + " | " + teacher5 + " |");
System.out.println( "+--------------------------------------+" );
}
}
Picture of the output