Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Your program should consist ofonly on function, the main function. When your pro

ID: 3616788 • Letter: Y

Question

Your program should consist ofonly on function, the main function. When your program begins, the user is prompted to enterinteger values representing themonth, day, and year, in that order. Your program shouldthen determine whether the dateis valid. If it is not valid, your program displays”mm/dd/yyyy is not a validdate”, where mm represents the month the userentered, dd represents the day the userentered, and yyyy represents the year the user entered. If the date is valid, yourprogram should print the display ”month-in-words dd, yyyy is a date in a leapyear.”

Explanation / Answer

please rate - thanks #include using namespace std; int main() {int month,day,year,leap,valid=1; cout>month>>day>>year;     if((year%4==0&&year%100!=0)||year%400==0)             leap=1;           else              leap=0; switch(month) {case 1: cout