Question
Target Department store offers discounts to customers who spend over a set amount each month and have a REWARDS card. When REWARDS customers spend at
Target Department store offers discounts to customers who spend over a set amount each month and have a REWARDS card.
When REWARDS customers spend at least $100 per purchase they receive a discount of 5%
if customers spend $500-$1000 per purchase they receive a discount of 10% on their total purchase.
Additional REWARDS:
Spend $1000-$2500 per purchase receive 20% discount off total purchase
Spend more than $2500 per purchase they receive a 30% discount.
As a team you are to design a class named RewardsCustomer which inherits from the TARGET class.
The TARGET class contains the customer's name, address, and phone number. Be sure to create the appropriate mutators and accessor/constructors for your class fields. Be sure to add a Boolean filed to check to see if the customer has a REWARDS card because that is the only way they can get the discount.
Output: print 10 customers and make sure you have a field displaying Y or N for Rewards Customer
Rewards Customers need to display what discount they received
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