subject

Design a class called Date that has integer data members to store month, day, and year. The class should have a three-parameter default constructor that allows the date to be set at the time a new Date object is created. If the user creates a Date without passing any arguments, or if any of the values passed are invalid, the default values of 1, 1, 2001 (i. e., January 1, 2001) should be used. The class should have member functions to print the date in the following formats:3/15/13March 15, 201315 March 2013Demonstrate the class by writing a program that uses it. Be sure you program only accepts reasonable values for month and day. The month should be between 1 and 12. The day should be between 1 and the number of days in the selected month.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
You know the right answer?
Design a class called Date that has integer data members to store month, day, and year. The class sh...
Questions
question
Social Studies, 07.03.2021 20:00
question
Mathematics, 07.03.2021 20:00
question
History, 07.03.2021 20:00
question
Mathematics, 07.03.2021 20:00
question
English, 07.03.2021 20:00