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, 24.06.2019 04:30
What is the process in which the software development team compiles information to determine the final product
Answers: 1
question
Computers and Technology, 24.06.2019 06:30
Some peer-to-peer networks have a server and some don't. true false
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
How does the use of e-mail benefit business communications? it can be sent at any time. it is faster than regular mail. it improves writing skills. it is less expensive than using a courier. it reduces the need for proofreading.
Answers: 1
question
Computers and Technology, 24.06.2019 19:20
Kiesha has a worksheet with a range of cells using the following columns: name, score, group, study group, and date. kiesha needs to sort the worksheet on the date field. which option she use to most efficiently complete this task ? a use the cut and paste option to reorganize the data to fit that order b use the filter function to organize the data based on the date c use the order function to organize the data based on the date d use the sort function to organize the data based on date order
Answers: 3
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
Social Studies, 12.10.2019 17:00
Questions on the website: 13722363