Question: Points ) Write a complete, working C + + program called euidB. epp ( where euid is your BUID ) that does the following:You have
Points Write a complete, working C program called euidB. epp where "euid" is your BUID that does the following:You have to write a program that counts the number of words in a single sentence, converts the first letter of each word to uppercase and the remaining letters in the word to lowercase. The rest of the characters in the string should not change. Declare the following variables.deg A string variable to read a single sentence from the useroThe string can have multiple words, each word separated by a single space.An integer variable to hold the count of whitespaces in the sentence.Using suitable prompt, read a single sentence from the user.Inside a loop of your choice, do the followingParse through all characters in the string, one character at a time.Check if the character is a letter.Ifit is a letter, check whether the previous character was a space. If true, change the letter to uppercase and update appropriate space counter.Display the updated string to the user.Iffalse, change to lowercase.Display the number of words to the user. Due to time constraints, no comments are required in this code.SAMPLE OUTPUT aexeEnter a single sentence:tHIs is CSCEUpdated String: This Is Csce Number of words:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
