Question: Finish the Date class code provided on the L: drive and on Canvas so that all of the functions in the UML table are completed.

Finish the Date class code provided on the L: drive and on Canvas so that all of the functions in the UML table are completed. You will need to modify the .h and Imp.cpp files and a main program to test all of the components of the date class. The printLongTextDate and dateOfWeek functions are not required to be completed. However, if you complete them correctly, you can earn a 10% bonus if it works correctly for dates between 1753 to 2099. If you can get it to work for earlier dates and dates after 2099, you can earn a 20% bonus. You will have to research this or develop your own method. DO NOT START YOUR OWN PROGRAM CODE. YOU MUST START WITH MY 3 FILES AND THEN COMPLETE THE MISSING PIECES. When complete, upload the following files: dateType.h, dateTypeImp.cpp, dateDriver, and a Word document with one or more pictures of your code running, showing that the date class works for all situations. Design your main program to test all of the possible errors and each of the functions. does this code meet requirments ( all in c++) #include
#include "dateTypeImp.cpp"
using namespace std;
int main()
{
dateType d;
// dateType d2(4,4,2024);
// dateType d3(0,29,1900);
d.printSlashDate();
cout << endl;
d.setDate(0,29,1900); // Test bad month
d.printSlashDate();
cout << endl;
d.setDate(2,29,1900); // Test bad day
d.printSlashDate();
cout << endl;
d.setDate(2,29,-3); // Test bad year
d.printSlashDate();
cout << endl;
d.setDate(2,28,1900); // Test a good date
d.printSlashDate();
cout << endl;
d.incrementDate(); // move ahead one day to next month
d.printSlashDate();
cout << endl;
d.incrementDate(); // move ahead one day in same month
d.printSlashDate();
cout << endl;
d.setDate(12,31,1900);
d.printSlashDate();
cout << endl;
d.incrementDate(); // move ahead one day to next year
d.printSlashDate();
cout << endl;
cout<<"Day of week:" << d.dayOfWeek()<< endl;
return 0;
}

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 Programming Questions!