Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #3: Strings, operations Write a C++ program that prompts the user to enter a sentence, the program then does the following 1 Prints the

image text in transcribed
Exercise #3: Strings, operations Write a C++ program that prompts the user to enter a sentence, the program then does the following 1 Prints the total characters in the sentence. 2. Prints the word count of the sentence, assuming only one space between each tow words 3. Prints total vowel {a, e, i, o, u} in the sentence. 4. Prints the vowel frequency as shown in the sample below. 5. Prints the sentence in reverse 6. Prints the total number of characters other than the alphabets (Note: space is a character) 7. Prints the sentence in a way so that the case of each character is changed, i.e. from lower to upper and vice versa Sample input / output: ter a string : haracter Count49 s to play foot 1. tennis. and golf rd Count9 owel Count :13 owel Frequency e i o u 0 verse : .flog dna ,sinnet ,11abtoof yalp ot sekil ?lA -rD n-aphabet Count12 ange Case dR. aLI LIKES TO PLAY FOOTBALL. TENNIS. AND GOLF

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago