Question: Program 1 :Write a program to accept a sentence which may be terminated by either . , ? or ! only. Any other character may

Program 1:Write a program to accept a sentence which may be terminated by either .,? or ! only. Any other character may be ignored. The words may be separated by more than one blank space and are in uppercase. Perform the following tasks: (a) Accept the sentence and reduce all the extra blank space between two words to a single blank space. (b) Accept a word from the user which is a part of the sentence along with its position number and delete the word and display the sentence.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!