Question: Please do this in c++ and Please use QString and QTextStream instead of string and iostream for this program. Thnk you. Date Design and implement


Please do this in c++ and Please use QString and QTextStream instead of string and iostream for this program. Thnk you.
Date Design and implement a Da t.e class based on Figure 2.8, subject to the following restrictions and suggestions. n DayssineeBasaliata. - The base year should be stored as a static int data member (e.g., 1000 or 1900). date. We have specified a private member function named y d2dsbd () to do that calculation for both. taserinet, function (boi briaf) to provide a choice of date formats. - We have specified some static utility functions (e.g., leapyear()) that are static because they do not affect the state of any Date objects. - Make sure you use the correct rule for determining whether a given year is a leap year! - Create a file named datc. to store your class definition. - Create a file named date.epp that contains the definitions of all the functions declared in dixte.,. - Write client code to test your cate class thoroughly. - Your class should handle "invalid" dates in a reasonable way (e.g., year earlier than the base year, month or day out of range, etc.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
