Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Kindly follow the instructions: Use only C++ Make separate .h , .cpp and main files There are similar questions already available on Chegg but they

Kindly follow the instructions:

Use only C++

Make separate .h , .cpp and main files

There are similar questions already available on Chegg but they don't have a separate class for Date and some other things, so do add these things according to the question given in the photo

image text in transcribed

A. Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. (10 2+2+2+2+2) a. An appointment has a description (for example, "see the dentist") and a date and time. b. Create a separate class Date to store Date and Time. c. Write getters and setters for the base class. d. Write appropriate constructors and destructors for all the classes. B. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. (10) For example, for a monthly appointment, you must check whether the day of the month matches. Write a test function to fill an array of Appointment* with a mixture of appointments a. b. Have the user enter a date and print out all appointments that happen on that date

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago