subject

What’s The Date? Design a struct called Date. The struct should store a specific date in three integers: month, day, and year.
Write a complete C++ program to use the struct Date that asks for a date entered at the keyboard, with the format mm/dd/ (strictly required, 3 points will be deducted for not applying the format). And then, the program will display the date in the following four forms, if it is valid:
12/25/2012 (US)
December 25, 2012 (US expanded)
25 December 2012 (US Military)
2012-12-25 (International)
Allow your program to run continuously as long as the user wishes to test with any other date entered.
Finally, your full name as the programmer who wrote the program must be displayed at the end.
Input validation: Do not accept any invalid input for a date. If it is, display the message "The date is invalid", and ask for another date. Leap year must be checked.
Required Input/Output
(must be similar to the following, where the bold characters are inputs)
The program displays a valid date in three different formats.
Note: All junk data will be rejected!
Enter a date (mm/dd/) or -1 to end: 2/29/2008
Invalid date/ wrong format: For both month and day, use two digits.
Re-Enter a date (mm/dd/) or -1 to end: 02/29/2009
2009 -> NOT Leap Year!
29 is not a valid day of February
Error!!! The entered date is invalid! Re-Enter, Please!
Enter a date (mm/dd/) or -1 to end: 02/29/2008
2008 -> Leap Year!
Date: 2/29/2008 is valid.
2/29/2008 (US).
February 29, 2008 (US Expanded).
29 February 2008 (US Military).
2008-02-29 (International).
Run again (y/n)? y
The program displays a valid date in three different formats.
Note: All junk data will be rejected!
Enter a date (mm/dd/) or -1 to end: 4/31/1975
Invalid date/ wrong format: For both month and day, use two digits.
Re-Enter a date (mm/dd/) or -1 to end: 04/31/1975
31 is not a valid day of April
Error!!! The entered date is invalid! Re-Enter, Please!
Enter a date (mm/dd/) or -1 to end: 04/30/1975
Date: 4/30/1975 is valid.
4/30/1975 (US).
April 30, 1975 (US Expanded).
30 April 1975 (US Military).
1975-04-30 (International).
Run again (y/n)? n
Programmer: FUll name – What’s the Date?
Press key to end ...

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
You know the right answer?
What’s The Date? Design a struct called Date. The struct should store a specific date in three inte...
Questions
question
Mathematics, 17.11.2020 22:10
question
Mathematics, 17.11.2020 22:10