Calculates and prints the number of students that failed


you will need to write a method that asks 10 numbers to the user in the main method. These numbers represent 10 student's grade. Once the 10 numbers are obtained, you will need to call the four other methods passing the 10 numbers as an argument.

The method calculateAverage needs to calculate and then print the average of the grades.

The method calculateMedian calculates and prints the median of the grades. The method calculateNumberFailed calculates and prints the number of students that failed and calculateNumberPassed calculates and prints the number of students that passes. The passing grade is 50%.
Fullscreen Pageflip Layout with BookBlock
class LabExercice6{
public static void main(String[] args){

//your code here

}

public static void calculateAverage(double[] notes){
//your code here
}

public static void calculateMedian(double[] notes){
//your code here
}

public static void calculateNumberFailed(double[] notes){
//your code here
}

public static void calculateNumberPassed(double[] notes){
//your code here
}

}

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Calculates and prints the number of students that failed
Reference No:- TGS02387339

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)