Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

Students also viewed these Databases questions