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 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
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
Questions on the website: 13722366