Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Create a CharConverter class that performs various operations on strings. It should have the following two public member functions to start with. Your instructor

c++

Create a CharConverter class that performs various operations on strings. It should have the following two public member functions to start with. Your instructor may ask you to add additional functions to the class.

The uppercase member function accepts a string and returns a copy of it with all lowercase letters converted to uppercase. If a character is already uppercase, or is not a letter, it should be left alone.

The properWords member function accepts a string of words separated by spaces and returns a copy of it with the first letter of each word converted to uppercase. Write a simple program that uses the class. It should prompt the user to input a string. Then it should call the properWords function and display the resulting string. Finally, it should call the uppercase function and display this resulting string. The program should loop to allow additional strings to be converted and displayed until the user chooses to quit.

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

More Books

Students also viewed these Databases questions

Question

What can a flow loop be compared to ?

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

2. Discuss the types of messages that are communicated nonverbally.

Answered: 1 week ago