Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Description: The purpose of this program is to determine if a String read in from the use is a palindrome. A palindrome is a word,
Description: The purpose of this program is to determine if a String read in from the use is a palindrome. "A palindrome is a word, number, phrase or other sequence of characters that reads the same backwards as forward (Wikipedia Palindrome). Examples include noon, dad, mom, 12321, and taco cat Filename: Palindrome java Classname: Palindrome Main metbod: Input: String of the word, phrase, or sentence to be checked Output: Prints out whether the word is or is not a palindrome The input should be read in from console as a String using a Scanner and should be able to contain multiple woeds. The output should print out the word or phrase as the usen entered it and whether or not it was a palindrome. When determining whether a word is a palindrome both case and white space should be ignored Example: In Listed below are helpful methods for your use. Please see the Java Docs for full usage. Finally, include a write-up of what you used to test this program, output, and expected output in a file called Palindrome.txt. Scanner.nextLine) String, charAt(int pos) Gets a character from a given osition in the Str int char Returns the length of the int String Java Doc h://docs.oracle.com/javase/7/docs/api/java/lang/String,html https://docs.oracle.com/javase/7/docs/api/java/util/Scanner ht (b)EvenOdd Description: Given an unspecified amount of numbers, determine how many umbers were even and how many were Filename: EvenOdd.java e Main method Input: A number (or nambers) from the user. Output: Prints bow many mbers were even and how many numbers were odd Do not just print two sumbers to the screen Include descriptions along with answers This progran that the user may enter. Also, include a write-up of what you used to test this program output, and expected output in a file called EvenCOdd.txt should run until the user enters zero and should account for any namber
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started