Question: JAVA: with the following skeleton, complete the function display_statistics that accepts three integers as arguments, namely: numOnenumTwo, and numThree. The function should compute and print
JAVA: with the following skeleton, complete the function display_statistics that accepts three integers as arguments, namely: numOnenumTwo, and numThree. The function should compute and print our the following statistics:
1. The sum of the three numbers
2. The maximum of the three numbers
3. The range of the numbers (i.e. the distance between the max and the min value)
4. The mean (average) of the three numbers
5. The (population) standard deviation of the three numbers
6. Finally, print out the three numbers in ascending order (Hint: find the median using the max and min plus addition and subtraction)
import java.util.Scanner;
public class Statistics {
public static void main(String[] args) {
// Enter your code
}
public static void display_statistics( int num1, int num2, int num3 ) {
// Enter your code
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
