Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
