Answered step by step
Verified Expert Solution
Link Copied!

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 constructor(s), setter(s), getter(s), 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 store(s)
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

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

More Books

Students also viewed these Databases questions

Question

What do you think WLAN security will look like in 3 years?

Answered: 1 week ago