Question: Create a c++ called myDate. It should have the following operations: myDatel) - default constructor. This will set the date to May 11, 1959 myDateLint

 Create a c++ called myDate. It should have the following operations:myDatel) - default constructor. This will set the date to May 11,

Create a c++ called myDate. It should have the following operations: myDatel) - default constructor. This will set the date to May 11, 1959 myDateLint m, int d, int y) - overloaded constructor. This will set the date to the values passed in through the parameter list represented by month, day and year e void disnlayL) _displaythe date in the fallowing format (May, 11 1959). DO NOT print a linefeed after the date. void increaseDateLint n) - increment the date by n days void decreaseDateLint n) - decrement the date by n days Int daysBetween(myDate date) - return the number of days between this d the date past, the return value will be a negative int. - return the month in integer form Int aetDas) return theday of the month Int getYearL) - return the year Int dayOfYearL) - return the number ofdays since the current year began. Example Jan 1 is 1, Feb 1 is 32. String dayName) -returns Monday, Tuesday, etc. according to the day oi the week. Write a driver program that tests each operation. I will provide attest program to you before the due date. Note: You can never have a date that is invalid. The only opportunity for this to happen will be with the overloaded constructor. Therefore, if an invalid data is passed to his constructor, ignore all data and set thevalues to the default date. I have included an explanation of Julian dates. You can make your life much easier by using his formula. The example code is written in Fortran. You will need to use "pass by reference" for some of the functions in the Julien date converter. Create 2 functions that are not class members. Locate these functions in the top portion of the myDate.cpp file. Here are the prototypes for these 2 functions: Int G2ILint mon, int day, int year) o // pass in the month, day and year and return the Julian number Void J2G^int JD, int& mon, int& day, int& year) o // pass in the Julian date, and get the correct month, day and year through the parameter list; pass by reference

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!