Question: C++ programming language. Files: main.cpp , date.h , date.cpp Write a program that allows us to create a Date object, display it and check if

C++ programming language. Files: main.cpp , date.h , date.cpp
 C++ programming language. Files: main.cpp , date.h , date.cpp Write a
program that allows us to create a Date object, display it and

Write a program that allows us to create a Date object, display it and check if it is a leap year Constructor takes 3 integer parameters corresponding to day, month and year 2. 1. getDay, getMonth, and getYear class functions return the corresponding value of the date object 3. display prints the date object as "1-January-1900 4. setDay, setMonth, setYear class functions set the corresponding value 5. isLeapYear returns true if the date is a leap year, false otherwise. A year is a leap year if it is evenly divisible by 4. BUT, if the year can be evenly divided by 100, it is NOT a leap year, unless it is also evenly divisible by 400. Then it is a leap year daysInMonth returns the maximum number of days in that month. January has 31 days, February 28 or 29, March has 31, etc 6. A sample testDate function and its output is provided below to help you design and test your date class. You should write additional test functio input is valid (i.e. day, month and year in the correct range). n to test your program. You can assume the void testDate) Date d1804 (2, 2, 1804) Date d1805 (10, 2, 1805) Date d1900 (20, 7, 1900) Date d2000 (20, 7, 2000) cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!