Top
Previous Next
The Java Language CS 161 - Java

Assignment for Next Time

Reading

Homework

Goal:

Purpose:

Instructions

Do the following:

Hint: Do the reading assignment before doing the homework.

In following assignments you are going to create several Employee objects. This assignment's goal is to create an object that will store information about a single employee. Next week we'll explore ways to create a number of Employee objects.

You should not do everything in the main method, do only what is asked for in the main method. Look at the in-class examples as a model for how the Employee class should be created.

Do only what is asked above. Do not add any extra code to prompt for input or otherwise add capabilities not asked for, simply use your name and whatever salary value you choose in the program. Be sure to create methods with the signatures requested. Output similar to the following is all the Employee class needs to produce:

Joe Student salary: 55000

Hint: To start, create the outline of your class definition by defining empty methods with the signatures listed above. Compile it to be sure the outline is in the right form. Then go back and start filling in the details of each method. Compile often so you can correct errors easily.

Hand in listings of your source file, and the usual transcript of its execution.


Top
Previous Next
jwd