Assignemnt #18
Code
/// Name: Carlos Sosa
/// Period: 6
/// Program Name: YourSchedule
/// File Name: YourSchedule.java
/// Date: 10/1/15
class Schedule {
public static void main(String[] args) {
String p1, p2, p3, p4, p5, p6, p7, t1, t2, t3, t4, t5, t6, t7;
p1 = "Pre-Calculus";
p2 = "AP Government";
p3 = "Baking";
p4 = "AP Chemistry";
p5 = "English";
p6 = "Intro Computer Programming";
p7 = "None";
t1 = "Mr. Thompson";
t2 = "Mr. Bradshaw";
t3 = "Mr. Nolte";
t4 = "Mr. Morgan";
t5 = "Mrs. Gunnison";
t6 = "Mr. Davis";
t7 = "None";
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