Problem

If necessary, create a new project named TryThis17 Project and save it in the Cpp7\Chap1...

If necessary, create a new project named TryThis17 Project and save it in the Cpp7\Chap13 folder. Also create a new source file named TryThis17.cpp.Write a program that allows the user to enter a string that represents a date. The date should be entered in the following format: mm/yy. Verify that the user entered exactly five characters and that the third character is the slash character (/). If the user did not enter the required number of characters, or if the third character is not a slash, display a message that indicates the type of entry error made by the user. Otherwise, the program should display the date in the following format:mm/20yy. Use a sentinel value to end the program. Save and then run the program. Test the program by entering the following dates: 6/08, 12/09, 05/10, and 123/4. (The answers to TRY THIS Exercises are located at the end of the chapter.)

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search