Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

nheritance and Polymorphism 5. Preferred customer Class A retail store has a pre

ID: 3574165 • Letter: N

Question

nheritance and Polymorphism 5. Preferred customer Class A retail store has a preferred customer where customers can earn discounts on all their purchases. amount of a plan discount determined by the The customer's is amount of the customer's purchases in the store as follows: a preferred customer spends s500, he or she gets a 5 percent discount on all future purchases. si,000, he or she gets a 6 percent discount a preferred customer spends on all future purchases. When a preferred customer spends $1,500, he or she gets a 7 percent discount on all future purchases. or she gets a 10 percent When a preferred customer spends $2,000 or more, he discount on all future purchases. Design a class named tomer, which is derived from the customer class you created in Programming Problem 4 The Preferredc class should have properties for the amount of the customer's purchases and the customer's dis count level. Demonstrate the class in a simple application.

Explanation / Answer

Form1.cs

===============================================================================

Form1.Designer.cs

====================================================================

Person.cs

=======================================================================

PreferredCustomer.cs

========================================================================

Program.cs