CS 220X, D-term 2015

Homework 4

Due: Tuesday, April 14 Thursday, April 16 at 5pm

Outcomes

After successfully completing this assignment, you will be able to...

Before Starting

Review Chapters 7 - 11 in Horstmann.

The Assignment

For Homework 4 you'll build an application that manages students and courses in a registrar's database. At the heart of every program is the logic, or functionality, that the program implements. This is often referred to as the business logic, or the model. For this project, you will design and implement the business logic of your registrar program, as well as a simple command line application that demonstrates the program's capabilities. (In a follow-up assignment, we'll extend this project to provide a user interface that will take the place of the command line application.)

Requirements

Your registrar program must (IGNORE THIS SECTION - WE'LL TALK MORE ABOUT ENCAPSULATION IN A WEEK OR TWO) Pay particular attention to encapsulation. As we've discussed, proper choice of public/private modifiers is one aspect of encapsulation. Another aspect concerns defining methods in the proper place. Remember our rule of thumb: don't ask for the information to do the work, ask the class that has the information to do the work for you.

Deliverables

Export your Eclipse project to a zip file and submit the zip file via web-based turnin. To export a project, go to File | Export… and choose Archive File from the General folder. Check off the entire project in the top left window and make sure the format is .zip and not .tar. Finally, give the archive file a name and click finish.

The name of the turnin project is Homework 4.

Programs submitted after 5pm on April 14 will be tagged as late, and will be subject to the late homework policy.

Grading

Your program must compile without errors in order to receive any credit. It is suggested that before you submit your program, you should compile it one more time to make sure that it compiles correctly.