Question
Write a C++ program that reads characters (Upper case, Lower case, and Digits ) including white spaces from the keyboard until user enters #. Then,
Write a C++ program that reads characters (Upper case, Lower case, and Digits ) including white spaces from the keyboard until user enters #. Then, your program should count total number of characters, uppercase letters, lowercase letters, and digits. Example of a possible input: Hello, welcome to Tempe. Todays temperature is 117!# Approach: First write the algorithm Come up with a flowchart that represents the program logic. verify your approach with sample data set Develop the program and test it for various inputs Hint: You will need to use selection within the while loop. library has character related functions (Appendix G2,3,4 - CD). Will be discussed during the lab. Also, string data type has a method length() which gives how many characters are stored in the string.
Write a program that reads characters (Upper case, Lower case, and Digits ) including white spaces from the keyboard until user enters #. Then, your program should count total number of characters, uppercase letters, lowercase letters, and digits.
Example of a possible input:
Hello, welcome to Tempe. Todays temperature is 117!#
Approach:
First write the algorithm
Come up with a flowchart that represents the program logic.
verify your approach with sample data set
Develop the program and test it for various inputs
Hint:
You will need to use selection within the while loop.
Step 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