In this exercise, you modify the program from TRY THIS Exercise 17. If necessary, create a new project namedModifyThis18 Project and save it in the Cpp7\Chap13 folder. Copy the instructions from the TryThis17.cpp file into a source file named ModifyThis18.cpp. Change the filename in the first comment to ModifyThis18.cpp. Modify the program so that it allows the user to enter the date in the following format: mm/dd/yy. Verify that the user entered exactly eight characters and that the third and sixth characters are slashes (/). If the user did not enter the required number of characters, or if the third and sixth characters are not slashes, 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/dd/20yy together. Save and then run the program. Test the program appropriately.
REFERECNE : EXERCISE 17
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.)
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.