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 03 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. h" file has started the definition of a Date class. It contains only one object-level data member, days, that stores the number of days that have passed since the beginning of the year. That is,0 refers to January 1,1 refers to January 2, and so on. The default constructor has been implemented to set the days_data member to 0, representing January
class Date {
private:
unsigned days_;
public:
Date();
1.
ri
You are to add a class-level constant array of 12 elements where each element holds the number of total days in the corresponding month. You may assume February has 28 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 "MM/DD" format it is then followed by the number of days for this date from January 1. Hint: Use the class-level constant array to help determine the corresponding month and day values for days _.
For example, given the following code segment:
Date d;
cout d end ;
Here's its expected output:
The date 0101 is 0 day(s) from January 1
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 non-leap year using the "M/D" format. The date may have one or two digits in the month and year. For example, March 7th would be represented as
 Mini Project 03 Reservations In this mini project, you are asked

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!