Question: Use the files given to you under final exam module. A retail store has a rewards customer plan where customers may earn discounts on all

Use the files given to you under final exam module.
A retail store has a rewards customer plan where customers may earn discounts on all their purchases. The amount of a customers discount is determined by the amount of the customers cumulative purchases in the store.
Design a class named RewardCustomer, which is derived from the CustomerData class you created.
The RewardCustomer class should have the following member variables:
purchasesAmount (a double)
The purchasesAmount variable holds the total of a customers purchases to date.
couponSubscription (a bool)
The couponSubscription variable should be set to true if the customer has signed up for coupons.
Output should indicate Yes or No not 0 or
Create a default constructor for RewardCustomer
Create appropriate accessors and mutators (getters and setters) for each class member.
Write appropriate member functions for this class and demonstrate it in a simple program. Demo all function on the main function.
Create RewardCustomer object to access all functions.
Input Validation: Do not accept negative values for any sales figures.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!