Question: 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).

 Exercise #4: Some Operations on Strings Write a program that uses

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 letters 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 Enter 1: Enter 2: Enter 3: Enter 4: Enter 5: Enter 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: 2 1Pmas tseT a si sihT Enter 1: Enter 2: nter 3: nter 4: Enter 5: Enter 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: 5 are 14 lower case letters and 3 upper case letters Enter 1: Enter 2: Enter 3: Enter 4: Enter S: Enter 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

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!