Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

Question Can I collect benefits if I become disabled?

Answered: 1 week ago

Question

Question May I set up a Keogh plan in addition to an IRA?

Answered: 1 week ago