If necessary, create a new project named TryThis17 Project and save it in the Cpp8Chap13 folder. Also

Question:

If necessary, create a new project named TryThis17 Project and save it in the Cpp8\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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: