Menu

[Solved] 2nd Request Need C Using Visual Studios Need Able Run Visual Studio Errors Persondata Cust Q37272830

2nd Request- Need C++ using Visual Studios (need to be able torun in Visual Studio with no errors): PersonData and CustomerDataClasses Design a class named PersonData with the following membervariables: lastName firstName address city state zip phone Writethe appropriate accessor and mutator functions for these membervariables. Next, design a class named CustomerData, which isderived from the PersonData class. The CustomerData class shouldhave the following member variables: customerNumber mailingList ThecustomerNumber variable will be used to hold a unique integer foreach customer. The mailingList variable should be a bool. It willbe set to true if the customer wishes to be on a mailing list, orfalse if the customer does not wish to be on a mailing list. Writeappropriate accessor and mutator functions for these membervariables. A retail store has a preferred customer plan wherecustomers may earn discounts on all their purchases. The amount ofa customer’s discount is determined by the amount of the customer’scumulative purchases in the store. When a preferred customer spends$500, he or she gets a 5 percent discount on all future purchases.When a preferred customer spends $1,000, he or she gets a 6 percentdiscount on all future purchases. When a preferred customer spends$1,500, he or she gets a 7 percent discount on all futurepurchases. When a preferred customer spends $2,000 or more, he orshe gets a 10 percent discount on all future purchases. Design aclass named PreferredCustomer, which is derived from theCustomerData class you created previously. The PreferredCustomerclass should have the following member variables: purchasesAmount(a double) discountLevel (a double) The purchasesAmount variableholds the total of a customer’s purchases to date. ThediscountLevel variable should be set to the correct discountpercentage, according to the store’s preferred customer plan. Writeappropriate member functions for this class and demonstrate it in aprogram. Input Validation: Do not accept negative values for anysales figures/

Expert Answer


Answer to 2nd Request- Need C++ using Visual Studios (need to be able to run in Visual Studio with no errors): PersonData and Cust… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *