Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 13 Vowel Program CSCI 111 Programming and Algorithms I Due Tuesday February 23, 11:59pm on turnin 10 Points NEW CONCEPTS: Successful completion of this

Lab 13
Vowel Program
CSCI 111 Programming and Algorithms I
Due Tuesday February 23, 11:59pm on turnin
10 Points
NEW CONCEPTS: Successful completion of this lab incorporates the following new concepts.
switch statement
switch ( )
{
case 'x':
statement;
break;
case 'y':
statement;
break;
BLAH
default:
statement;
}
tolower function tolower( )
Task list:
1. Create a source code file named lab13.cpp.
2. Start by prompting the user for a sentence and saving it into a variable of type string.
3. Determine the frequency of each of the 5 vowels (i.e. a, e, i, o, u) plus other unknown characters.
4. The determination of vowels should be case-insensitive which means lower and upper-case letters are
treated the same. It is mandatory to use the tolower function. Upcoming quizzes/exams may require the usage of the tolower function.
string sentence;
char letter;
letter = tolower(sentence[c]));
5. The program should also use the switch statement. No credit will be earned if the switch statement is not implemented.
6. Refer to the expected output listing below.
7. Submit your lab13.cpp file on https://turnin.ecst.csuchico.edu/ and get a successful message.
GRADING
To achieve a maximum score, students will need to clearly prove that they completed the goal.
Points lost for incompleteness, sloppiness, lateness, or failure to follow instructions.
Refer to syllabus for late policy.
SAMPLE OUTPUT
/user/faculty/jraigoza/CSCI111/Labs/lab13 $ ./lab13
Please enter a sentence.
CSCI 111 is fun and ENJOYABLE!
Vowel statistics
a: 2
e: 2
i: 2
o: 1
u: 1
unknown: 22 /user/faculty/jraigoza/CSCI111/Labs/lab13 $ ./lab13 Please enter a sentence.
The price is RIGHT.
Vowel statistics
a: 0
e: 2
i: 3
o: 0
u: 0
unknown: 14 /user/faculty/jraigoza/CSCI111/Labs/lab13 $ ./lab13 Please enter a sentence.
Who are the Chainsmokers?
Vowel statistics
a: 2
e: 3
i: 1
o: 2
u: 0
unknown: 17 /user/faculty/jraigoza/CSCI111/Labs/lab13 $

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago