Code a charconverter class that performs various operations


Code a CharConverter class that performs various operations on strings.

It should have the following two public member functions to start with.

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

Code 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

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Code a charconverter class that performs various operations
Reference No:- TGS02868580

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)