Assignemnt #18
Code
/// Name: Connor Siri
/// Period: 7
/// Program Name: Schedule
/// File Name: Schedule.java
/// Date Finished: 9/17/2015
class Schedule {
public static void main(String[] args) {
String p1, p2, p3, p4, p5, p6, p7, t1, t2, t3, t4, t5, t6, t7;
p1 = "Chemestry";
p2 = "AP US History";
p3 = "AP Calculus AB";
p4 = "English";
p5 = "Sports Med";
p6 = "AP Environmental Science";
p7 = "Intro to Computer Programing";
t1 = "Mrs. Morse";
t2 = "Mrs. Harvey";
t3 = "Mr. Karas";
t4 = "Mrs. Tate";
t5 = "Mrs. Green";
t6 = "Mr. Merkin";
t7 = "Mr. Davis";
System.out.println("+------------------------------------------------------------------+");
System.out.println("|1| " + p1 + " |" + t1 + " |");
System.out.println("|2| " + p2 + " |" + t2 + " |");
System.out.println("|3| " + p3 + " |" + t3 + " |");
System.out.println("|4| "+p4 + " |" + t4 + " |");
System.out.println("|5| " + p5 + " |" + t5 + " |");
System.out.println("|6| " + p6 + " |" + t6 + " |");
System.out.println("|7| " + p7 + " |" + t7 + " |");
System.out.println("+------------------------------------------------------------------+");
}
}
Picture of the output