Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Proficiency with Microsoft Word, Excel, PowerPoint

Answered: 1 week ago

Question

Experience with SharePoint and/or Microsoft Project desirable

Answered: 1 week ago