Create a charconverter class that performs various


Character Converter Class

Create a CharConverter class that performs various operations on strings. It should have the following two public member functions:

  • The uppercase member function accepts a string object and returns the string 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 object consisting of words separated by spaces and returns 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, display it, call one or the other of the class functions to convert it, then display the converted 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
Business Management: Create a charconverter class that performs various
Reference No:- TGS01682595

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)