#include #include //get_day function void get_days(int month, int&total) { int c; total = 0; int Modays[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; cout<< "month entered " << month << endl; for (c =0; c< month - 1; c++) { total = total + Modays [c]; } return; }//end of get_day function //leap function int leap(int year) { if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) return 1; else return 0; }//end of leap function int main() { //input int temp, month [20], day [20], year [20], count, c, answer; int total [20] = {0}; int manyday; int ct = 0; cout << "Enter the Month or 0 to end" << endl; cin >> temp; while (temp != 0 && ct <= 20) { month [ct] = temp; cout << "Enter the day" << endl; cin >> day [ct]; cout << "Enter the year : " << endl; cin >> year [ct]; ct ++; cout << "Enter the Month or 0 to end" << endl; cin >> temp; }//end while count = ct; for (c = 0 ; c < manyday; c++) { get_days( month [c], total[c]); if (leap(year[c] ==1 ) && month [c] > 2) total [c] = total [c] + 1; else total [c] = total [c] + day[c]; cout << "the date you entered is: " << "month" << month << "day" << day << "year" << year << endl; cout << "the day number is: " << ???? << endl; } return 0; } //main