A word palindrom is a sentence that reads the same, word by word, backward and f
ID: 3534952 • Letter: A
Question
A word palindrom is a sentence that reads the same, word by word, backward and forward ( ignoring punctuation and capitalization). An example is " you can cage a swallow, can't you, but you can't swallow a cage, can you?" write a program that requests a sentence and then determines whether the sentence is a word plaindrome. the program should place the words of the sentence in an array and use function procedure to determine wether the sentence is a word plaindrom. ( test the program with the sentences " monkey see, monkey do." and " I am; therefore, am I?")
note: excute the statement sentence=sentence.Replace(",", "") to remove all the commas in sentence, and then remover other punctuation marks similarly. After that, use the space charachter as a delimiter for the split method.
Explanation / Answer
Working...
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.