Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C + + solutions: giftCard.h - declarations of the class giftCard - private data members: such as Store Name, Card ID , Date of Expiration,
C solutions:
giftCard.h declarations of the class giftCard
private data members: such as Store Name, Card ID Date of
Expiration, Initial Amount, Current Balance, etc.
public methods: such as constructors setters getters get
Days before expiration, get balance, make a purchase; etc.
giftCard.cpp implementations of the public methods of the class
declared in the header file.
tester.cpp main that contains test cases to use the giftCard class
o Construct a few instances objects of giftCard that belongs to the
same or different stores
o For each giftCard
Display the card profile store name, card ID;
Check the balance of the gift card;
Check if the card is expired;
Make a purchase using the balance of the card, if the balance
is insufficient, reject the purchase, and display a warning to
the user.
Etc...
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