Question: JAVA 114 Objectives: Practice functions DO NOT use anything we haven't covered in class. Assignment: In this assignment you will write a program that tests
JAVA

114 Objectives: Practice functions DO NOT use anything we haven't covered in class. Assignment: In this assignment you will write a program that tests a word consisting of only lowercase letters. The user can chose to test if the word is a palindrome or test if there are more vowels or consonants in the word. The user can test as many words as they want. You will need 3 functions: . main function o no parameters no return value This function gets a word from user and asks user which test to perform. It will call the other 2 functions. Then, it will display the result of the test. Finally, it asks if user wants to enter another word o function that tests for palindromes o 1 parameter- word to test o 1 return value- value that indicates the word is a palindrome or not o This function determines if the word is a palindrome or not. . function that test for vowels and consonants o 1 parameter- word to test o 1 return value - value that indicates if there are more vowels than consonants, more consonants than vowels, or an equal amount of both This function counts that number of vowels and consonants in the word and compares the amounts. o 4 5 6 7 8 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
