Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

U11 Informing Industry: Publicizing Contract Actions 317

Answered: 1 week ago