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

write a program that reads in two dates (using three integers for each) and disp

ID: 3653642 • Letter: W

Question

write a program that reads in two dates (using three integers for each) and displays a message showing the date that comes first. Use the following algorithm: if the first date's year is smaller, it comes first Otherwise, if the second date's year is smaller, it comes first Otherwise check the month to determine which date comes first in a similar way If the months are the same then check the day. {{VERY IMPORTANT ADD THIS::::: (input VALIDATION),(FUNCTION (BOOl)) ,((Y > 0)) ,(1 < M < 12) ,(1 < d <31}} please read all the problem. Please answer me the soon as possible ,the best answer will be rate 5 stairs!

Explanation / Answer

//so, you want it to loop and output //think this covers it #include using namespace std; bool validM(int m){ if((m>=1)&&(m=1)&&(d=0) return true; else return false; } void printDate(int m, int d, int y){ cout