subject

Ensure that all files are well commented and documented. Part 1 - Person Class Design a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods for the class's fields. Also include a toString method that displays the person information. Customer Class Design a class named Customer, which inherits from the Person class. The Customer class should have a field for a customer number and a Boolean field indicating whether the customer wishes to be on a mailing list. Write one or more constructors, and the appropriate mutator and accessor methods, for the class's fields. Also include a toString method that displays the superclass information followed by the customer information. CustomerTest Class This class contains a main program to test your Customer objects. Demonstrate you can create a Customer object and display the object's information. Part 2 - Preferred Interface Create a public interface called "Preferred". This interface should specify an abstract method called "getDiscount" that takes no arguments. Preferred Customer Class This class inherits from the Customer class and implements the Preferred interface. The Preferred Customer class should have fields for the amount of the customer's purchases and the customer's discount level. The discount level is determined the following way: • When a preferred customer spends $500, he or she gets a 5% discount on all future purchases.
• When a preferred customer spends $1000, he or she gets a 5% discount on all future purchases.
• When a preferred customer spends $1500, he or she gets a 7% discount on all future purchases.
• When a preferred customer spends $2000, he or she gets a 10% discount on all future purchases.
Write one or more constructors and the appropriate mutator and accessor methods for the class's fields. A toString class should display all customer information, including the amount of purchase and discount level.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:10
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password.keep yourself loggedin when you leave your computer.don’t write your password down and leave it whereothers can find it.share your password with your friends.each time you visit a website,retain the cookies on your computer.use a long password with mixed characters.
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
You know the right answer?
Ensure that all files are well commented and documented. Part 1 - Person Class Design a class named...
Questions
question
Mathematics, 01.12.2021 23:10
question
Mathematics, 01.12.2021 23:10
Questions on the website: 13722362