#include using namespace std; #include "date.h" Date fathersday(int year) // post: returns fathers day of year { Date d(6,1,year); // June 1 while (d.DayName() != "Sunday") { d += 1; } // d is now the first Sunday, third is 14 days later return d + 14; } int main() { int year1, year2, currentyear; cout << "enter two year values: "; cin >> year1 >> year2; for (currentyear = year1; currentyear <= year2; currentyear++) { cout << "Father's day of year " << currentyear << " is " << fathersday(currentyear) << endl; } Date today; cout << "Remaining days in this month: " << today.DaysRemaining(); return 0; }