Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Program Palindrome *Please do add comments on the program as 1 A palingram is a phrase / sentence in which the letters or words

Java Program Palindrome

*Please do add comments on the program

image text in transcribed

image text in transcribed

as 1 A palingram is a phrase / sentence in which the letters or words read the same backward as they do forward. A phrase/sentence is a letter palingram if the sequence order of the letters (disregard the letter case) is the same when it reads backward it reads forward disregarding the spaces and punctuations. While the word palingram, the sequence order of the words in the phrase/ sentence (disregard the letter case of the letters) is the same when it reads backward as it reads forward disregarding the punctuations only. An example of letter palingram is "Able was I ere I saw Elba", purportedly spoken by Napoleon, referring to his first sighting of Elba, the island where the British exiled him. An example of word palingram is "He was, was he?". The sentence, "I did, did I?" is not only a word palingram but a letter palingram as well. the user is a Write a program will tell if the inputted phrase/sentence of palingram (letter and/or word) or not. Sample run: PALINGRAM IDENTIFIER >> Enter a phrase/ sentence: Able was I ere I saw Elba! -- A PALINGRAM (Letter Palingram) >> Enter 'Y' to try again: Y >> Enter a phrase sentence: He was, was he? -- A PALINGRAM (Word Palingram) >> Enter 'Y' to try again: Y >> Enter a phrase sentence: He was, was he? -- A PALINGRAM (Letter & Word Palingram) >> Enter 'Y' to try again: Y >> Enter a phrase sentence: Hello, how are you? -- NOT A PALINGRAM >> Enter 'Y' to try again: x Program Terminated

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

What were some of the team norms at Casper?

Answered: 1 week ago