Write a program that will continually ask the user to enter a string from standard input until user enters Q or q to quit. After reading the user’s input string, the program will count number of characters, vowels, lowercase letters, uppercase letters, number of digits, number of other characters and number of words from the user’s input string. You can use getline(cin, inputString) to read entire line. Please refer to my previous lecture on data validation. http://www.cplusplus.com/reference/string/string/getline/ Characters: counts everything (user input length) Vowels: a e i o u A E I O U Lowercase letters: any characters a-z Uppercase letters: any characters A-Z Digits: 0-9 Other characters: mean any character that is not alphanumeric. You can use C++ library function to check if a character is: • islower, isupper: - http://www.cplusplus.com/reference/cctype/islower/ • Make sure you include #include

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Write a program that will continually ask the user to enter a string from standard input until user enters
Q or q to quit.
After reading the user’s input string, the program will count number of characters, vowels, lowercase
letters, uppercase letters, number of digits, number of other characters and number of words from the
user’s input string. You can use getline(cin, inputString) to read entire line. Please refer to my previous
lecture on data validation. http://www.cplusplus.com/reference/string/string/getline/
Characters: counts everything (user input length)
Vowels: a e i o u A E I O U
Lowercase letters: any characters a-z
Uppercase letters: any characters A-Z
Digits: 0-9
Other characters: mean any character that is not alphanumeric.
You can use C++ library function to check if a character is:
• islower, isupper: - http://www.cplusplus.com/reference/cctype/islower/
• Make sure you include
#include <ctype.h>

You can use C++ library function to check if a character is:
islower, isupper: - http://www.cplusplus.com/reference/cctype/islower/
Make sure you include
#include <ctype.h>
Your program needs continuously ask the user to enter the string until the user enters Q or q to exit the
program.
For example, if the input string from user is below:
This line has 52 characters, 11 vowels and 10 words!
Your program would print out the output below:
Enter a sentense: This line has 52 characters, 11 vowels and 10 words!
Input length is 52 characters.
There were 11 vowels.
There were 34 lowercase letters.
There were 1 uppercase letters.
There were 6 digits.
There were 11 other characters.
There were 10 words.
Your program must print out your names and lab info as you did in previous lab similar to the following:
Activate Windows
Program written by: Ron Sha
Course info: CS-102 - Lab6 Letter Count
Go to Settings to activate
Date: Thu Sep 24 00:28:11 2020
Transcribed Image Text:You can use C++ library function to check if a character is: islower, isupper: - http://www.cplusplus.com/reference/cctype/islower/ Make sure you include #include <ctype.h> Your program needs continuously ask the user to enter the string until the user enters Q or q to exit the program. For example, if the input string from user is below: This line has 52 characters, 11 vowels and 10 words! Your program would print out the output below: Enter a sentense: This line has 52 characters, 11 vowels and 10 words! Input length is 52 characters. There were 11 vowels. There were 34 lowercase letters. There were 1 uppercase letters. There were 6 digits. There were 11 other characters. There were 10 words. Your program must print out your names and lab info as you did in previous lab similar to the following: Activate Windows Program written by: Ron Sha Course info: CS-102 - Lab6 Letter Count Go to Settings to activate Date: Thu Sep 24 00:28:11 2020
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education