subject

24. Design a class called Date. The class should store a date in three private integers: month, day, year. There should be a member function to print out the date in the month/day/year format, e. g. 12/25/2015, 4/1/1970 There should be a constructor which takes three parameters to initialize the date. It should not accept values for day greater than 31 or less than 1, or values for month greater than 12 or less than 1. If the constructor is called with these values an error message should be printed out and the field set to 0. Any value for year is acceptable. There do not need to be any other member functions. Provide the class declaration and also the implementation of the member function and constructor.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Which spreadsheet operation does a look function perform?
Answers: 1
You know the right answer?
24. Design a class called Date. The class should store a date in three private integers: month, day,...
Questions
question
Mathematics, 06.10.2020 16:01
question
English, 06.10.2020 17:01
question
Mathematics, 06.10.2020 17:01
Questions on the website: 13722362