Question: 1 average: this method takes 3 integers and finds and returns their average example: if the values are 3 , 5 , and 8 ,

1 average: this method takes 3 integers and finds and returns their average
example: if the values are 3,5, and 8, then the method returns 5.33.
2 max: this method takes 3 integers and finds and returns the maximum value
example: if the values are 6,13, and -2, then the method returns 13.
3 isAllEven: this method takes 3 integers and returns true if they are all even, and false otherwise
example: if the method takes 2,18, and 12, then the method returns true. Whereas if the method takes 4,3, and 16, then the method returns false.
4 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 3 integers and a String from the user and call the 4 methods to test them (in their original order) according the sample run below. Remember that the output must match the sample run.
Sample run 1:
Please enter 3 integers:
358
Please enter a string:
hello
The average is : 5.33
The maximum value is : 8
All values are even : false
The reversed string is : olleh
Sample run 2:
Please enter 3 integers:
21812
Please enter a string:
Summer
The average is : 10.67
The maximum value is : 18
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!