Question: Problem 3 : Selected St ring Features Write a program that prompts the user to enter a string in main ( j ) . The

Problem 3: Selected St ring Features
Write a program that prompts the user to enter a string in main(j). The main(j) fun ction will then pass the
string to a function called getSomeFeatu res[i) which will find the number of words, lowercase letters, and
uppercase letters in the string. The getSomeFeatu res(j) fu nction will implicitly return these features back
to the main(j) for printing. Since the getSomefeatures(i) function is a void function, you should use the
"pass-by-reference" 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 10, int suc);
Sample input / output:
Enter a string: THIS is a test 5IRING,
The following are sone of the string features:
word count: 5
lowercase count: 7
uppercase count: 10
write it using c++
Problem 3 : Selected St ring Features Write a

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 Programming Questions!