
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
In C++

Transcribed Image Text:Vowel Counter
Enter a string
(Enter "stop" to terminate program): The Cat in the Hat.
Number of a's: 2
Number of e's: 2
Number of i's: 1
Number of o's: 0
Number of u's: 0
Enter a string
(Enter "stop" to terminate program): The sun did not shine.
Number of a's: 0
Number of e's: 2
Number of i's: 2
Number of o's: 1
Number of u's: 1
Enter a string
(Enter "stop" to terminate program): Too wet to go out
Number of a's: 0
Number of e's: 1
Number of i's: 0
Number of o's: 5
Number of u's: 1
Enter a string
(Enter "stop" to terminate program): stop
Grand Total of a's: 2
Grand Total of e's: 5
Grand Total of i's: 3
Grand Total of o's: 6
Grand Total of u's: 2

Transcribed Image Text:You can use either C-Strings (technically an array) or CPP Strings.
Write a program that ...
Continuously prompts the user for a string and counts the number of vowels {'a', 'e', 'i', 'o', 'u'} in it.
Display the number of a's, e's, etc. in the given string.
The program is to loop until the user enters the sentinel value "stop" (do not return the number of vowels when the user enters the sentinel value).
Keep track of the total number of each vowel and display a summary of the resulting number of each vowel.
Use the below data as your input. Your output should match the given output.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 3 images

Knowledge Booster
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
- What are some common C++ string manipulation errors that can be encountered? How can these errors be resolved and/or limited?arrow_forwardHow can you tell the difference between basic and sophisticated data types when it comes to C++?arrow_forwardexplain how data hiding is achieved in C++arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education