Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ project: For this project, you will need to build one custom class that can be used to display as many holiday greeting cards as

C++ project:

For this project, you will need to build one custom class that can be used to display as many holiday greeting cards as needed, for any holiday. Build one class and make many objects of that class--one for each greeting card.

Deliverables:

Do not create a class for each holiday. The idea is to create one class that will work for any holiday.

Your class must include:

Data

The class must hold a greeting card number and several strings: the name of the person getting the greeting card, the name of the person sending the greeting card, the greeting card message and the occasion (Valentine's Day, Birthday, etc). You can decide how to store these, but you must have at least one private variable that is used more more than one function. (5 points)

Functions

Constructors: Your class must have a constructor without parameters and another constructor that accepts parameters to set at least one private variable.

Your class must have one or more mutator (setter) function with parameters to set private variables (2 points).

Your class must have one or more accessor (getter) function to return private variables (3 points).

You will need a function to display the greeting card with all of its data elements. (5 points)

The main function should create an object of your greeting card class for a holiday greeting card (you choose the holiday) that uses one of the constructors and functions. Then, create another object of the greeting card class for another holiday card (different holiday) that uses the other constructor (not previously used) as well as its functions.

For this project, you can make up your own greeting card message to send to a function of your greeting card class, or click on the above image for some ideas.

(5 points)

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 And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

ISBN: 303139688X, 978-3031396885

More Books

Students also viewed these Databases questions

Question

2. What items are typically included in the job description?

Answered: 1 week ago

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago