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, 21.06.2019 17:00
Which process would best represent the opposite of exhausting air from a system?
Answers: 2
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
You know the right answer?
Ensure that all files are well commented and documented. Part 1 - Person Class Design a class named...
Questions
Questions on the website: 13722363