Assignemnt #18
Code
/// Name: Daniel Nguyen
/// Period: 6
/// Program Name: MySchedule Program
/// File Name: CreatingVariables.java
/// Date Finished: 9/9/2015
public class MySchedule
{
public static void main( String[] args ) {
String per1, per2, per3, per4, per5, per6, per7;
String tea1, tea2, tea3, tea4, tea5, tea6, tea7;
// Classes
per1 = "Psycology";
per2 = "US History";
per3 = "PreCalculus";
per4 = "English 3";
per5 = "Study Hall";
per6 = "Computer Programming";
per7 = "AP Biology";
// Teachers
tea1 = "Mrs. Heckmann";
tea2 = "Mr. Downing";
tea3 = "Mr. Thompson";
tea4 = "Mr. Heard";
tea5 = "Mr. Harris";
tea6 = "Mr. Davis";
tea7 = "Mrs. Polivka";
// Print
System.out.println("+-------------------------------------+");
System.out.println("|1| " + per1 + "| " + tea1 + "|");
System.out.println("|2| " + per2 + "| " + tea2 + "|");
System.out.println("|3| " + per3 + "| " + tea3 + "|");
System.out.println("|4| " + per4 + "| " + tea4 + "|");
System.out.println("|5| " + per5 + "| " + tea5 + "|");
System.out.println("|6|" + per6 + "| " + tea6 + "|");
System.out.println("|7| " + per7 + "| " + tea7 + "|");
System.out.println("+-------------------------------------+");
}
}
Picture of the output