Variable #18 (A letter in a Nutshell)
Code
/// Name: Amir Salehi
/// Period: 7
/// Program name: YourSchedule
/// File name: YourSchedule.java
/// Date: Finished 9/28/2015
public class YourSchedule
{
public static void main( String[] args )
{
String per1, per2, per3, per4, per5, per7, teacher1, teacher2, teacher3, teacher4, teacher5, teacher6, teacher7;
per1 = "Government";
per2 = "French 3";
per3 = "Learning Skills";
per4 = "Math Analysis";
per5 = "English 4";
per7 = "Intro to Programming";
teacher1 = "Mr. Avacolli";
teacher2 = "Ms. Mulhair";
teacher3 = "Ms Dourado";
teacher4 = "Mr. Franks";
teacher5 = "Ms. Gunnison";
teacher7 = "Mr. Davis";
System.out.println("+------------------------------------------+");
System.out.println("|1| " + per1 + "|" + teacher1 + " |");
System.out.println("|2| " + per2 + "|" + teacher2 + " |");
System.out.println("|3| " + per3 + "|" + teacher3 + " |");
System.out.println("|4| " + per4 + "|" + teacher4 + " |");
System.out.println("|5| " + per5 + "|" + teacher5 + " |");
System.out.println("|6| " + per3 + "|" + teacher3 + " |");
System.out.println("|7|" + per7 + "|" + teacher7 + " |");
System.out.println("+------------------------------------------+");
}
}
Picture of the output