Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how to solve this question on C++ using string Exercise #3: Strings' operations Write a C+ program that prompts the user to enter a sentence,
how to solve this question on C++ using string
Exercise #3: Strings' operations Write a C+ program that prompts the user to enter a sentence, the program then does the following 1. 2. 3. 4. 5. 6. 7. Prints the total characters in the sentence Prints the word count of the sentence, assuming only one space between each tow words Prints total vowel { a. e. i, o, u} in the sentence Prints the vowel frequency as shown in the sample below Prints the sentence in reverse Prints the total number of characters other than the alphabets (Note: space is a character) 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: nter a string: Dr. Al haracter Count49 ord Count : 9 owel Count :13 owel Frequency: kes to play football, tennis, and golf. 2 0 everse : .flog dna .sinnet .llabtoof yalp ot sekil ilA .rlD on-aphabet Count 12 hange Case : dR. aLI LIKES TO PLAY FOOTBALL. TENNIS. AND GOLFStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started