Question: Hello, Please help with java program Thank you Develop a program that has the following three methods: 1. int median(int x, int y, int z)
Hello, Please help with java program
Thank you
Develop a program that has the following three methods: 1. int median(int x, int y, int z) that calculates the median of three integers. 2. int mean(int x, int y, int z) that calculates the average of three integers, rounding the result to the nearest integer. 3. The main method that repetitively accepts three integers and states whether the median of the three is larger than the mean, smaller than the mean, or equal to the mean until the three integers accepted are the same. The main method calls the method median to get the median of three integers, and calls the method mean to get the mean of the three integers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
