Question: Create a function called toLowerCase and test it. Do not use c-strings (character arrays) for this activity, you should only use string objects (strings). 1.Create

Create a function called toLowerCase and test it.

Do not use c-strings (character arrays) for this activity, you should only use string objects (strings).

1.Create a function called toLowerCase with the following prototype:

string toLowerCase(string);

The function will convert a string to all lowercase

The function will take one argument, a string to convert to all lowercase

.The function will return the lowercase version of the string

2.Test the functions

the main function prompts the user for a string.

a.Pass the string as an argument to the toLowerCase function.

b.Display the converted string returned by the toLowerCase function.

3.You must use a function prototype declared before the main function and define the function below the main function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!