In C# thanks please,
Design a class named Person with properties for holding aperson’s name, address, and telephone number.
Design a class named Customer, which is derived from the Personclass. The Customer class should have the variables and propertiesfor the customer number, customer email, a spentAmount of thecustomer’s purchases, and a Boolean variable indicating whether thecustomer wishes to be on a mailing list. It also includes afunction named calcAmount that calculates the spentAmount.
All retail store has a preferred customer plan where customerscan earn discounts on all their purchases. The amount of acustomer’s discount is determined by the amount of the customer’scumulative purchases in the store as follows:
- 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 6%discount on all future purchases.
- When a preferred customer spends $1500, he or she gets an 8%discount on all future purchases.
- When a preferred customer spends $2000, he or she gets a 10%discount on all future purchases.
Design a class named PreferredCustomer, which is derived fromthe Customer class. The PreferredCustomer class should have avariable, discountLevel, with a read-only property. It alsoincludesa setDiscountLevel function that determine the discount level basedon the purchases amount using switch statement and an overridefunction, calcAmount, calculates the spentAmount with the currentdiscount level.
Create a CustomerDemo class. In the main function, the programcalls the getData function to read the data from the“CustomerInfo.txt†file and create a dynamic array ofPreferredCustomer object.  Then, it prompts user to entera customer number and displays a menu:
- Display Customer Information: display the specific customerinformation
- Update Spent Amount: update the total amount with the correctdiscount level
After update the spent Amount, the program writes the updatedinformation back to file.
Example for customer info.txt below (there are 5 persons)
Kyle Jones
879 hobbs st. boston,MA 84758
456-789-0001
JLA9876A
[email protected]
3000
true
.
.
.
.