Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 average: this method takes 3 integers and finds and returns their average example: if the values are 3 , 5 , and 8 ,
average: this method takes integers and finds and returns their average
example: if the values are and then the method returns
max: this method takes integers and finds and returns the maximum value
example: if the values are and then the method returns
isAllEven: this method takes integers and returns true if they are all even, and false otherwise
example: if the method takes and then the method returns true. Whereas if the method takes and then the method returns false.
reverse: this method takes a String and returns its reverse.
example: if the method takes "hello" the it returns the string "olleh".
In the main read integers and a String from the user and call the methods to test them in their original order according the sample run below. Remember that the output must match the sample run.
Sample run :
Please enter integers:
Please enter a string:
hello
The average is :
The maximum value is :
All values are even : false
The reversed string is : olleh
Sample run :
Please enter integers:
Please enter a string:
Summer
The average is :
The maximum value is :
All values are even : true
The reversed string is : remmuS
solve with java.
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