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
Get step-by-step solutions from verified subject matter experts
