Please read the entire problem before jumping into the code!
Using the in-class examples as a guide, create a class called Date
with
the following characteristics:
day
, month
and year
.
The year should be a positive number that can range from 1 to infinity, months range from
1-12, and days range from 1-30 (at this point, were ignoring the variant
days-per-which-month issue)..01/01/1980
if arguments are not given.mm/dd/yyyy
format.Write a driver program to test all the permutations of your class, as seen in lecture examples. Your class definition, implementation and driver program should all be in separate files. Submit your copies to the FTP site in a separate folder called P10PREP and send email to jim3@millard.org if you want them reviewed.