Problem

Character Converter Class Create a CharConverter class that performs various oper...

Character Converter Class

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 more 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

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT