
Object Oriented Programming - Programming Assignment #2
Assigned: 2/6/07 (Tuesday)
Due: 2/15/07 (Thursday) at 11:55pm WebCT time
Objective
1. Utilizing pre-written classes
2. Creating multiple objects of a class.
3. Reviewing Java primitives
Problem: Scheduler
For this program you will use two prewritten classes, Event and Schedule. The files
Event.class and Schedule.class will be posted on both the course web page and WebCT.
You will need to download these files in order to complete the assignment. A document
specifying the public methods of the Event class and Schedule class will also be posted
on both WebCT and the course web page. Once you download it, you will simply leave
this file in the same directory as the file that you create for this part of the assignment,
Planner.java.
In your program, you will allow the user to make and edit plans for two days of their
schedule, Monday and Tuesday. (Your program will set up two empty Schedule objects
for these days without getting any input from the user.)
Your program will be menu driven and give the user the following choices:
1) Schedule an event.
2) Cancel an event.
3) Move a scheduled event.
4) Print the schedule for a day.
5) Print out how much time (in hours) is already scheduled.
6) Print out how much time (in hours) is free for scheduling.
7) Quit
For each choice, you must first ask the user for which day (Monday or Tuesday) they
want to execute the choice.