Question: Problem 3 : Selected St ring Features Write a program that prompts the user to enter a string in main ( j ) . The
Problem : Selected St ring Features
Write a program that prompts the user to enter a string in mainj The mainj fun ction will then pass the
string to a function called getSomeFeatu resi which will find the number of words, lowercase letters, and
uppercase letters in the string. The getSomeFeatu resj fu nction will implicitly return these features back
to the mainj for printing. Since the getSomefeaturesi function is a void function, you should use the
"passbyreference" mechanism to implicitly return these values back to the main j fun ction.
For your convenience, the function prototype is given below.
void getsomeFeatures char str int swc int int suc;
Sample input output:
Enter a string: THIS is a test IRING,
The following are sone of the string features:
word count:
lowercase count:
uppercase count:
write it using c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
