Question: Language is Java Description: Palindrome -- According to wikipedia A palindrome is a word, phrase, number or other sequence of units that can be read

Language is JavaLanguage is Java Description: Palindrome -- According to wikipedia "A palindrome is

Description: Palindrome -- According to wikipedia "A palindrome is a word, phrase, number or other sequence of units that can be read the same way in either direction" Write a application that can determine if a 5 digit number you input is a palindrome. If the number is a palindrome then print "The number is a palindrome." If it is not then print "The number is NOT a palindrome" Make sure to use an array in this homework If you want to do extra and get an A+: 1. Allow input of any length integer (ie 12345654321 would be valid input) 2. Allow input of any number of any alphanumeric characters (ie abg345tghtriu8 would be valid input) //- // This is the good version pseudocode Il create string sInput // Il prompt for input // // create char array (cArray) and assign sInput.toCharArray() // // loop to check for palindrome (set i = 0, j = sInput.length()-1, check to see if i !=j; increment i, decrement j) // check to see if current array values are != // print not a palindrome // return // end of loop // print is a palindrome //

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 Databases Questions!