Using a functional decomposition and a C++ program that reads a date in a numeric form and prints it in English. For example : Enter a date in the form mm dd yyyy 10 27 1997 The date is: October twenty-seventh, nineteen ninety-seven. Another example: Enter a date in the form mm dd yyyy 12 10 2010 The date is: December tenth, two thousand ten. The program should print an error message for any invalid date, such as 2 29 1883 ( 1883 was not a leap year). Make sure to use Do-While and Switch constructs in your codes. Use proper indentation, appropriate comments, and meaningful identifiers thought the program.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |