Homework 9

Assigned 4/13/05

Task: Write a program where you define a Date class that contains day, month, and year information. Your class should contain a function that takes as a parameter an instance of your Date class, compares it to the calling instance and returns the difference between the two dates in days.

Your program should ask the user for two dates and print out the returned difference.

You do not have to worry about the different types of calendars used over the years, nor do you have to worry about the more arcane leap-day rules.

Purpose: To practice building and using your own class.