Question: Learning objectives: Application of loops in problem solving Write a program that reads a string of characters from the keyboard that consists of any of
Learning objectives: Application of loops in problem solving
Write a program that reads a string of characters from the keyboard that consists
of any of the following characters:
az AZ space char
until the user enters # Then, your program shall count the total number of
characters, number of uppercase letters, number of lowercase letters, and number
of digit characters.
Example input:
Pssst Huh Qz#
Expected Output:
where the first output line is the total number of chars, the next line contains the
number of lowercase letters, the next line is the number of uppercase letters, the
next line is the number of digit characters, and the final line is the number of
space characters. Each output line shall end with a newline.
Name your source code file labcpp and submit online labcpp online to
Gradescope for grading.
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
