Write a program that reads a string

Assignment Help Programming Languages
Reference no: EM131267248

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 <math>. Arithmetic operations such as +, -, *, / do not require <math> 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.

Reference no: EM131267248

Questions Cloud

Create a second ad or storyboard for your product : Now create a second ad or storyboard for your product. This time, however, you must use all the words, visuals, and concepts that are listed in the right column.
Server system to a cloud computing environment : What factors should a firm consider when evaluating a move from a client/server system to a cloud computing environment?
Which of the following is a class of fingerprint pattern : The automated fingerprint identification systems (AFIS) can search a set of 10 fingerprints against a file of 500,000 in approximately and Which of the following is a class of fingerprint pattern
Program that reads a fahrenheit degree : Write a program that reads a Fahrenheit degree in double from an input dailog box, then converts it to celius and display the result in message dialog box. the formula for the conversion as follows : celiuse=(5/9)*(fahrenheit-32)?
Write a program that reads a string : 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.
Write a program that will first read in a positive integer : Write a program that will first read in a positive integer number, say n, from standard input. Then you need to create enough space in the heap via a call to malloc to hold an array of n integers.You then need to use array index operators to fill the..
Write menu-driven program that make coffee shop operational : The cost of one small cup is $1.75, one medium cup is $1.90, and one large cup is $2.00. Write a menu-driven program that will make the coffee shop operational.
List the six fundamental forms : The study lists six fundamental forms that communicate trustworthiness of an Internet store. List the six fundamental forms. Explain what fulfillment means and what the five components of fulfillment are according to the eCommerce Trust Study above. ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program for a furniture company

Write a program for a furniture company that determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table

  Describe the design and application of arrays

Describe the design and application of arrays and how the array simplifies program development. Support your answer with hypothetical real-world example.

  Write a program to use function

The program ends the first time that the user chooses not to delete a value from the array. Your main function may also call other functions to carry out some of its work - Here is an example execution of the required program (input typed by the us..

  Write program using array to show fifo queue

Write program using any language which uses the array to demonstrate simple FIFO queue with 10 job entering the queue and 5 jobs removed from the queue by the server.

  Different class maintain programming programs are organized

It allows different classes to maintain programming so that programs are kept more organized. Object orientation also allows a programmer to use the same objects in different programs. Response?

  Write a program to find the common songs in these lists

Write a program to find the common songs in these lists. Let user enter the list sizes n and m and the songs. While testing your program for submission, make sure that the lists are different but they do intersect in some songs.

  Create a user interface that uses the gridlayout manager

Define and compile the following two classes that will represent seats in a stadium and When creating a new Stadium, the constructor above will fill a 27x35 two-dimensional array of Seat objects, where each Seat has a number, row and section.

  Write program to caculate value of user-s stock

Write a program which caculates value of user's holding of a particular stock. Program asks for number of shares held, whole ¬dollar portion of price for one share, also the fraction portion.

  Write assignment statement with one arithmetic operator

Write a simple assignment statement with one arithmetic operator in some language you know. For each component of the statement.

  List all movie ids and titles that have never been rented

List names of the tables that you have created whose name starts with MM. (Hint: use data dictionary view USER_TABLES).

  Write program that merges two files

The first programming project involves writing a program that merges two files that contain polynomials. To merge two files, the input files must be in sorted order.

  Write class to represent temperatures in degree-fahrenheit

Write Temperature class to represent temperatures in degrees in Celsius, Fahrenheit and Kelvin. Use floating-point number for temperature and a character (type char) for scale.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd