I am to write a prog to manip sentences in diff ways. I am to prompt the user for the three manipulration options they wish. They are
reorder sentence
sentence encryption
count vowels
quit
You are to read in a sentence entered by the user. the words in this sentence will be in the wrong order
you are then to repeatedly prompt the user for the position of words to switch. after each switch is made you should reprint the newly constructed sentence.
if the user enters a negative number as a word position to switch you should quit the program
if the user enters a number less than one , or greater than the number of words in the sentence you should print the following:
Invalid position entered and ask for the first position again.
reorder sentence
sentence encryption
count vowels
quit
You are to read in a sentence entered by the user. the words in this sentence will be in the wrong order
you are then to repeatedly prompt the user for the position of words to switch. after each switch is made you should reprint the newly constructed sentence.
if the user enters a negative number as a word position to switch you should quit the program
if the user enters a number less than one , or greater than the number of words in the sentence you should print the following:
Invalid position entered and ask for the first position again.
Comment