Question
Please, please, please follow the instruction. Thank you C++, please. Calendar Project In this project, you need to create a calendar application that allows users
Please, please, please follow the instruction. Thank you
C++, please.
Calendar Project In this project, you need to create a calendar application that allows users to add events, view daily and monthly events, update events, and delete events. You are not limited to the features included in these instructions, feel free to add any other components you find useful Note: A normal year has 365 days. A leap year has 366 days (the extra day is February 29). In this project, you must take this fact into account. The rules that determine leap years are provided later in these instructions. Design the Event class, to be used in your application, containing: A private data member eventNo of type long integer that holds the event number. A private data member month of type integer that holds the month of the event. A private data member day of type integer that holds the day of the event. A private data member year of type integer that holds the year of the event. A private data member hour of type integer that holds the hour of the event. A private data member minute of type integer that holds the minute of the event. A default constructor that sets the date and time of the event to midnight, 01/01/1753. Accessors for the member variables. Mutators for the member variables. Make sure the values stored in the member variables are valid (example, month in the range [1 12], hour in [0 23], minute in [0 59] A member function that updates the eventNo member variable. The function generates a long integer value for the event using the following pattern: YYYYMMDDhhmm (example, 202209261720 for the event occurring on 09/26/2022 at 5:20pm). Write a program that thoroughly tests your Event class. Consider using the following functions in your program (you can use more functions). The implementations of these functions are left to you; they can be members of the Event class, friends of it, or just regular stand-alone functions. A function that tests whether the year of an event is leap. A function that returns the month name of an event (ex, January, February ). A function that returns the day name of an event (ex, Sunday, Monday ). Note that the day for January 1 of the year 1753 was a Monday. A function that prints monthly calendars (optional). A function that prints the holidays of any year (optional). Rules for determining leap years: Leap Years are any year that can be exactly divided by 4 (such as 2016, 2020, 2024, etc) Except if it can be exactly divided by 100, then it isn't (such as 2100, 2200, 2300, etc) Except if it can be exactly divided by 400, then it is (such as 2000, 2400, 2800, 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