C++ How To Program Plus Mylab Programming With Pearson Etext -- Access Card Package (10th Edition)
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 21, Problem 21.17E
Program Plan Intro

Counting Number of Vowels

Program Plan:

  • Include the required header files.
  • Define the “main” function.
    • Create a string object str and accept input in it.
    • Create character array vowel with five vowels.
    • Create integer array freq for frequency and count.
    • Assign count to 0.
    • Transform str to lower case.
    • Use an outer loop to iterate through vowel array.
      • Assign current freq to 0.
      • Traverse through the str.
      • Check if the current value of str is a vowel.
        • If vowel then increment current freq and count.
  • Display the total number of vowels in str.
  • Display the frequency of each vowel using a loop.

Blurred answer
Students have asked these similar questions
Design and draw a high-level "as-is" process diagram that illustrates a current process related to a product or service offered through the SSDCI.gov database.
Compare last-mile connections for connecting homes and businesses to the Internet
Explain wireless networking standards
Knowledge Booster
Background pattern image
Computer Science
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.
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Introduction to Operators in C; Author: Neso Academy;https://www.youtube.com/watch?v=50Pb27JoUrw;License: Standard YouTube License, CC-BY