Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started