Question
add a default constructor to the class add code to the 3 parameter constructor that tests the parameters. If the parameters are bad then the
add a default constructor to the class add code to the 3 parameter constructor that tests the parameters. If the parameters are bad then the constructor replaces the bad parameters with good ones. the constructor does not display error messages. add code to the function setDate that tests the parameters. If the parameters are bad then the function replaces the bad parameters with good ones. the function does not display error messages. add a function isLeapYear to check whether class data member dYear is a leap year. the function returns true or false. the function has no parameters. add a no parameter accessor to the class that returns the month as an integer add a no parameter accessor to the class that returns the day as an integer add a no parameter accessor to the class that returns the year as an integer add a one parameter mutator to the class that assigns a good value to dYear add a one parameter mutator to the class that assigns a good value to dMonth add a one parameter mutator to the class that assigns a good value to dDay Do not add any new data members to the class. Do not change the accessibility of any class data members. add a public member function to the class that returns the number of days in the month. the function has no parameters. add a public member function to the class that returns the number of days passed from the beginning of the year to the date that the class represents. the function has no parameters. for example, if the date is 12/31/2016 then the function returns 366. if the date is 12/31/2018 then the function returns 365. if the date is 1/1/2016 or 1/1/2018 then the function returns 1. add a public member function to the class that returns the number of days remaining in the year. the function has no parameters. for example, if the date is 1/1/2018 then the function returns 364. if the date is 12/31/2018 then function returns 0. the sum of values returns by the preceding two function should be the number of days in the year. write a public function that returns a dateType object. calculate the dateType object by adding a fixed number of days to the function's date. the function does not change its date. it creates a new data. the function is a "const" function. eg. dateType oldDate(3, 15, 2018); dateType newDate = oldDate.newDate(30); newDate.printDate();
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started