Program Specification: Write a Java program that displays the schedule of classe
ID: 3639039 • Letter: P
Question
Program Specification:
Write a Java program that displays the schedule of classes information for at least two of the courses that your are enrolled in for this semester, in a reasonable report format:
Notes and Hints:
For each class, your report must include:
The department code for the department that offers the course.
The course number.
The course name.
The number of credits that the course is offered for.
The lecture number of your class.
The start time of your class.
The end time of your class.
The days of the week that your class meets.
The room that your class meets in.
For table like formatting, you may find the following very helpful:
System.out.print(' '); - prints a tab (horizontal space).
System.out.println(); - prints a newline (vertical space).
Sample run(s):
COMPSCI-251: Intermediate Computer Programming (3 Credits)
Lecture 401 10:00 - 10:50am MW EMS W190
COMPSCI-317: Discrete Information Structures (3 Credits)
Lecture 401 12:00 - 12:50pm TR EMS E145
Explanation / Answer
Put this in a file named Scedule.java public class Schedule { public static void main(String[] args) { System.out.println("COMPSCI-251: Intermediate Computer Programming (3 Credits)"); System.out.println(" Lecture 401 10:00 - 10:50am MW EMS W190"); System.out.println("COMPSCI-317: Discrete Information Structures (3 Credits)"); System.out.println(" Lecture 401 12:00 - 12:50pm TR EMS E145"); } }
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.