Write a program that reads a string and outputs the number


Write a program that reads a string and outputs the number of times each lowercase vowel appears in it. Your program must contain a function with one of its parameters as a string variable and return the number of times each lowercase vowel appears in it.

Also write a program to test your function. (Note that if str is a variable of type string, then str.at(i) returns the character at the ith position. The position of the first character is 0. Also, str.length() returns the length of the str, that is, the number of characters in str.)

Please submit each lab assignment with only two files for grading.

a .docx file of its program's successful execution output in Word format
a .cpp file of your C++ program design (source code)

Each .cpp source code should include a header documentation and some block documentation. Please see my sample .cpp file under Additional Resources at Student Center.

Do not omit embedded block documentation. This is a part of grading component.

An example for header documentation: (stated in Class Information document)

// Author: Gerry Adams

// Assignment: Lab 3 - P2.3

// Program Title: Arithmetic Operations

// Program Description: The program prompts the user for two integers, and the calculatetheir sum, difference, product, average, distance, maximum, and minimum.

// Compiler Used: Microsoft Visual C++

// Completion Date: July 1, 2016

1. Do not include unnecessary header files such as . Arithmetic operations such as +, -, *, / do not require header file.

2. To pause an execution for viewing, you may use system ("PAUSE");

3. If you use the statement: using namespace std; at the beginning of your program, you need not to include std:: with cin and cout.

4. Be aware of using proper code indentation. The purpose of good indentation is for easy reading and debugging, thus speeding up maintenance work.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program that reads a string and outputs the number
Reference No:- TGS01670048

Now Priced at $30 (50% Discount)

Recommended (96%)

Rated (4.8/5)