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 bonus if it works correctly for dates between to If you can get it to work for earlier dates and dates after you can earn a bonus. You will have to research this or develop your own method. DO NOT START YOUR OWN PROGRAM CODE. YOU MUST START WITH MY 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 d;
dateType d;
dprintSlashDate;
cout endl;
dsetDate; Test bad month
dprintSlashDate;
cout endl;
dsetDate; Test bad day
dprintSlashDate;
cout endl;
dsetDate; Test bad year
dprintSlashDate;
cout endl;
dsetDate; Test a good date
dprintSlashDate;
cout endl;
dincrementDate; move ahead one day to next month
dprintSlashDate;
cout endl;
dincrementDate; move ahead one day in same month
dprintSlashDate;
cout endl;
dsetDate;
dprintSlashDate;
cout endl;
dincrementDate; move ahead one day to next year
dprintSlashDate;
cout endl;
cout"Day of week:" ddayOfWeek endl;
return ;
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
