Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

1. Are my sources credible?

Answered: 1 week ago

Question

3. Are my sources accurate?

Answered: 1 week ago

Question

1. Is it a topic you are interested in and know something about?

Answered: 1 week ago