Question: Above is the code template that is referenced in the lab description, I need this asap. Thanks! (Using C, not C++) Download the template for


Above is the code template that is referenced in the lab description, I need this asap. Thanks! (Using C, not C++)
Download the template for case.c below under Submission Instructions. This program repeatedly reads strings from standard input (keyboard), halting when end-of-file (ctrl-d) is reached. For each string, it calls a function, countCase, that takes the string as the first parameter and counts the number of uppercase letters and the number of lowercase letters in the string. The function reports the two counts through the last two reference parameters. The function signature for countCase is shown below: void countCase(char str[], int *pNumUpper, int *pNumLower); After calling the function, the main function should print the number of uppercase and lowercase letters in each string. Assume that each string has a length of 50 at most. An example is shown below. Example User Input: Alabama\#1 CRImSON TidE UA1831 Program Output: Alabama\# 1: 1 uppercase, 6 lowercase CRImSON: 6 uppercase, 1 lowercase TidE: 2 uppercase, 2 lowercase UA1831: 2 uppercase, 0 lowercase Notes - isupper (ch) - checks if ' A ' =ch
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
