Home Tutorialhelp Comment PLEASE HELP!!!

 
 

Comment

Zach Reynolds
PLEASE HELP!!!,
July 17, 2008 at 11:58 PM

I am faced with the following project and I am having a very difficult time with it as I am only a beginner. Can you please help me?


Design a class named Person with fields:

* name
* address
* city
* state
* zipcode

Write one or more constructors and necessary gets and sets for the class's fields

Next design a class named Customer which inherits from the Person class and has a field:

* customer number

Write one or more constructors and necessary gets and sets for the class's field.

Next design a class named PreferredCustomer with inherits the Customer class and has two fields for a customer's purchases and a customer's discount level.

* purchases
* discount level

A discount for a customer is determined by the following levels of purchase:

* $500 and over the customer gets a 5% discount
* $1,000 and over the customer gets a 6% discount
* $1,500 and over the customer gets a 7% discount
* $2,000 and over the customer gets a 10% discount

Write one or more constructors and necessary gets and sets for the class's fields:

Write a demo/driver program that uses all of these classes through inheritance. The demo program should use JOptionPane to ask the appropriate questions to complete a full summary output of the customer's information.


View All Comments | View Tutorial
Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.