Question: Using c++ Exercise #4: Some Operations on Strings Write a program that uses a C-string to store a string entered from the keyboard (in lower
Exercise #4: Some Operations on Strings Write a program that uses a C-string to store a string entered from the keyboard (in lower case letters). The program will then provide 6 options about operations performed on the input string in the form of a menu, as shown in the following sample Input/Output. The 6 operations are given below: 1. print the string 2. reverse the string 3. print the length of the string 4. convert the lower le tters to upper and the upper to lower in the string 5. count the lower and upper letters 6. to end the program Note: It is not allowed to use the string library functions for the 5 operations. Sample Input/Output nter a string of size 1ee (maximum): This is a Test samPle nter 1: nter 2: nter 3: nter 4: nter 5: nter 9: To print the string To reverse the string To print the length of the string To convert the string case To count the lower and upper case letters To stop the progran nter your choice: 2 nter 1: nter 2: nter 3: nter 4 nter 5: nter 9: To print the string To reverse the string To print the length of the string To convert the string case To count the lower and upper case letters To stop the progran nter your choice: s are 14 lower case letters and 3 upper case letters nter 1: nter 2: nter 3: nter 4: nter 5: nter 9: To print the string To reverse the string To print the length of the string To convert the string case To count the lower and upper case letters To stop the program nter your choice: 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
