Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ' =chStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started