Instruction: Write a program that * first display 20 * in the terminal (you need to use a loop to do this) * then prompts the user to enter two dates in the format of MM/DD/YYYY * terminate the program if the dates are not valid (i.e., month is not in the range of 1 and 12, or day is not in the range of 1 and 31, or year is negative). * compare the two dates and report either
An example run of your program is as follows, where the user inputs are underlined, and the program output are shown in regular format:
$ ./a.out ******************** Enter date 1 in the format of MM/DD/YYYY: 12/13/2000 Enter date 2 in the format of MM/DD/YYYY: 12/13/2010 date 1 is before date 2Another run shows invalid input as follows (the program just exits):
$ ./a.out ******************** Enter date 1 in the format of MM/DD/YYYY: 14/13/2000 Invalid date!Requirement
Coding Style Requirement:
How to submit
When ready, submit your program on the following link: submit your quiz2.cpp file here.
https://storm.cis.fordham.edu:8443/web/project/746
The autograder will compile your code, and run four testcases.