subject

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.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:40, queenskyyt
Write the quartstogallons java class that declares a named constant to hold the number of quarts in a gallon (4). also declare a variable to represent the number of quarts needed for a painting job, and assign an appropriate value—for example, 18. compute and display the number of gallons and quarts needed for the job. display explanatory text with the values, for example:
Answers: 2
image
Computers and Technology, 22.06.2019 08:00, wgdelgado
What is the first step in creating a maintenance ?
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, jennifer7037
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
image
Computers and Technology, 23.06.2019 14:30, officialrogerfp3gf2s
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
You know the right answer?
Create a charconverter class that performs various operations on strings. it should have the followi...

Questions in other subjects: