Question: *************** using c++ **************** Question3 Write a C++ program that reads a string of characters, including spaces, and counts the number of words in the

*************** using c++ ****************
Question3 Write a C++ program that reads a string of characters, including spaces, and counts the number of words in the sentence. Words are separated by at least one space. The input string terminates when the characters is encountered A sample output is shown below Enter a sentence with words separated by one space and ending with the character "!" We have come to the end of this semester! There are 9 words in the sentence uestion 4 Write a C++ program that accepts a string of characters representing a person's name which is made up of three parts: first name, middle, name, and last name, separated by exactly one space. For example: Ahmed Ali Mohammed. The program then breaks the string into three parts and prints out the following First Name: Ahmed Middle Name: Ali Last Name: Mohammed Question5 Write a C++ program that requests from the user to input a sentence that terminates by . (period) and then the program prints the number of the letter a and A' that occurred in the sentence. The maximum length of the sentence is 20, but must terminate by a period cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
