Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Declare and Implement a class clubCard clubCard.h - declarations of the class clubCard private data members: such as Club Name, Club Address, Card Holder Name,

Declare and Implement a class clubCard

clubCard.h - declarations of the class clubCard

private data members: such as Club Name, Club Address, Card Holder Name, Card ID, Date of (card) Creation, Date of (card) Expiration, annual Fee ($), etc

public methods: such as constructor(s), setter(s), getter(s), get Days before expiration, get annual fee, isFeePaid; etc

clubCard.cpp - implementations of the public methods of the class declared in the header file.

tester.cpp - main() that contains test cases to use the clubCard class o

Construct a few instances (objects) of clubCard that belongs to the same or different clubs.

For each clubCard Display the club profile (club name, address);

Display the card holder profile (holder name, card ID); Check the annual fee to pay of the clubCard; Pay the annual fee and set the isFeePaid flag; Calculate and display the number of days before expiration;

For all the clubCard (s) created,

Count the total number of the clubCard (s); calculate the total and average annual fees of all the clubCard (s)

c++ please

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

Students also viewed these Databases questions