Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

=+1. Determine the purpose.

Answered: 1 week ago