Question: Write a method (not a complete program, just a method). That receives 3 real numbers (double) and returns a double. The method should be called

Write a method (not a complete program, just a method). That receives 3 real numbers (double) and returns a double. The method should be called sqrRootOfLargest and must compute the square root of the largest of the three values received and return that value. For instance, if the values 9, 25, and 16 were passed as parameters then the return would be 5 since 5 is the square root of 25 which is the largest of the three arguments. You will need to use the Math.max() and Math.sqrt() methods for this.

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!