Question: C++ Exercise #3: Some operations on strings Write a program that uses a C-string to store a string entered from the keyboard (in lower case

 C++ Exercise #3: Some operations on strings Write a program that C++

Exercise #3: 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 4 options about operations performed on the input string in the form of a menu, as shown in the following sample Input/Output. The 4 operations are given below: 1. print the string 2. reverse the string 3. print the length of the string 4. convert the lower letters to upper and the upper to lower in the string 5. count the lower and upper letters 6. to stop Note: It is not allowed to use the string library functions for the 4 operations. Sample Input/Output: nter a string of size 100 (maximum): This is a Test SamPle nter 1 to print the string nter 2 to reverse the string nter 3 to print the length of the string nter 4 to convert the letter case nter 5 to count the lower and upper case letters nter -1 to stop our choice: 2 elPmas tseT a si sihT Enter a string of size 100 (maximum): This is a Test SamPle Enter 1 to print the string Enter 2 to reverse the string nter 3 to print the length of the string Enter 4 to convert the letter case Enter 5 to count the lower and upper case letters Enter -1 to stop Your choice: 4 tHIS IS A tEST SAMpLE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!