Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ 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
C++
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. 2. 3. 4. 5. 6. print the string reverse the string print the length of the string convert the lower letters to upper and the upper to lower in the string count the lower and upper letters to stop Note: It is not allowed to use the string library functions for the 4 operations. Sample Input/Output: Enter a string of size 100 (maximum): This is a Test SamPle Enter 1 to print the string Enter 2 to reverse the string Enter 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 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 Enter 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 our choice: 4 HIS IS A tEST SAMpLEStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started