This assignment requires creating code in multiple files: two files (.cpp and .h
ID: 441240 • Letter: T
Question
This assignment requires creating code in multiple files: two files (.cpp and .h) for each class, as well as main.cpp. To Submit: make a compressed folder (zip archive) that contains only the files you created for the assignment. Call it pa4.zip, then submit it. Return to your Date class from the last assignment. Expand it so it has A public member function, DisplayTextEuropean. This prints out the date on a single line in the form [day number] [month name], [year]. ex: 22 February, 2010 A public member function, AdvanceOneDay. This has no arguments, and advances the date by one day. (Make sure you check for dates that are at the end of a month or a year.) A public member function, AdvanceDays This takes a single integer argument (n), and advances the date by n days. (Hint: This function should make use of AdvanceOneDay funtion.) Alter the code you already have to correctly handle leap years. The actual rules for determining if a year number, Y, is a leap year, are: If Y is divisible by 400, then Y is a leap year. Otherwise, if Y is divisible by 100, then Y is NOT a leap year. If neither of the above are true, AND Y is divisible by 4, then Y is a leap year. NOTE: For this assignment, I will not look at your main() at all, but will test your class directly by compiling it with my own testing code. However, you should test your own code thoroughly, with appropriate commands in a main program, before you submit.Explanation / Answer
If Y is divisible by 400, then Y is a leap year