Assignment 18: Your Schedule
Code
/// Name: Ryan McAteer
/// Period: 5
/// Program Name: Using Variables
/// File Name: Assignment18.java
/// Date Finished: 9/17/15
class Assignment18
{
public static void main(String[] args)
{
//Variables//
String course1, course2, course3, course4, course5, course6;
String teacher1, teacher2, teacher3, teacher4, teacher5, teacher6;
course1 = "Electronics";
course2 = "Pre-Calculus";
course3 = "AP US History";
course4 = "Physics";
course5 = "Intro Programming";
course6 = "English III";
teacher1 = "Poehnert";
teacher2 = "Thompson";
teacher3 = "Harvey";
teacher4 = "Becker";
teacher5 = "Davis";
teacher6 = "Heard";
//My Schedule//
System.out.println( "+-----------------------------------------+" );
System.out.println( "|1| " + course1 + " |" + teacher1 + "|" );
System.out.println( "|2| " + course2 + " |" + teacher2 + "|" );
System.out.println( "|3| " + course3 + " |" + teacher3 + " |" );
System.out.println( "|4| " + course4 + " |" + teacher4 + " |" );
System.out.println( "|5| " + course5 + " |" + teacher5 + " |" );
System.out.println( "|6| " + course6 + " |" + teacher6 + " |" );
System.out.println( "+-----------------------------------------+" );
}
}
Picture of the output