Question: Mini Project 0 3 Reservations In this mini project, you are asked to process different types of reservations and determine the cost of each. The
Mini Project Reservations
In this mini project, you are asked to process different types of reservations and determine the cost of each. The starter project contains multiple files.
The Date Class
The "Date. file has started the definition of a Date class. It contains only one objectlevel data member, days, that stores the number of days that have passed since the beginning of the year. That is refers to January refers to January and so on The default constructor has been implemented to set the daysdata member to representing January
class Date
private:
unsigned days;
public:
Date;
ri
You are to add a classlevel constant array of elements where each element holds the number of total days in the corresponding month. You may assume February has days.
In addition, add the prototypes of the following functions to the "Date.h file, implement them in the "Date.cpp file, and demonstrate thorough testing in the "main.cpp file. It's important that you ensure the Date class has been properly implemented and tested BEFORE working on the different Reservation classes.
The overloaded & operator as a friend function to support the display of a Date object. This function is to send a message about the Date object to an output stream. The first part of the message must be a date in the MMDD format it is then followed by the number of days for this date from January Hint: Use the classlevel constant array to help determine the corresponding month and day values for days
For example, given the following code segment:
Date d;
cout end ;
Here's its expected output:
The date is days from January
The overloaded operator as a member function to support the assignment from a string on the right to a Date object on the left. You may assume that the string on the right of will always represent a valid date in a nonleap year using the MD format. The date may have one or two digits in the month and year. For example, March would be represented as
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
