Design a class Date: Provide 3 fields (int) to store the month number, the day number, and the year Provide the following functions: Default constructor - sets date to 1, 1, 1900 Constructor with...


this is ony one quiestion so please answer them all.


USE C++


Design a class Date:<br>Provide 3 fields (int) to store the month number, the day number, and the<br>year<br>Provide the following functions:<br>Default constructor - sets date to 1, 1, 1900<br>Constructor with parameters – if parameters are not valid, set to 1,1,1900<br>setDate - if parameters are not valid, set to 1,1,1900<br>Accessors for each field<br>Return the next day (example: if current day is Friday return Saturday)<br>Return the previous day (example: if current day is Tuesday, return Monday)<br>Print a date in the form mm-dd-yyvy (example: 11-25-2020)<br>Print a date with the month as a String_(ex: March 20, 2010)<br>

Extracted text: Design a class Date: Provide 3 fields (int) to store the month number, the day number, and the year Provide the following functions: Default constructor - sets date to 1, 1, 1900 Constructor with parameters – if parameters are not valid, set to 1,1,1900 setDate - if parameters are not valid, set to 1,1,1900 Accessors for each field Return the next day (example: if current day is Friday return Saturday) Return the previous day (example: if current day is Tuesday, return Monday) Print a date in the form mm-dd-yyvy (example: 11-25-2020) Print a date with the month as a String_(ex: March 20, 2010)

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here