Answered step by step
Verified Expert Solution
Link Copied!

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 ,

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

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions