Wednesday, September 24, 2008

Second Major Assignment...also please upload your First Assignment

Please upload your first major assignment (BankAccount and LetterPrinter) to your FTP space as soon as you can. I'd rather if we kept all the assignments in the same place.

Your second major assignment is as follows:You are going to design a class for a business of your choosing. You need to keep track of at least four attributes.

You will need at least two other methods in addition to the necessary getters and setters.

After you create your class, make three objects and store them in an array of that type.

You can hard code the business testing info into the main.

But if you use Scanner to ask the user what to change, you can get 20 extra points on the assignment!

Here's an example, you will need to pick another business:

class LawFirm
{

//typeOfLaw, billableHours, nameOfLawFirm, costPerHour

//+20
//constructors
//+20
//methods: calculateTotalCost, returnMessageAboutFirm
//+30
}

class LawFirmTester
{

//create an array of 3 LawFirm objects
//+20
//display names of law firms and allow user to enter a number to learn more information about each firm
//+10
//allow the user to update the information about the firms- things do change.
//+20
}

The number of points are commented above.

Due Wednesday October 1st on your FTP space.

No comments: