Question: For this exercice, you will need to write a method that asks for 1 0 numbers from the user in the main method. These numbers

For this exercice, you will need to write a method that asks for 10 numbers from the user in the main method. These numbers represent 10 students' grade. Once the 10 numbers are obtained, you will need to call the four other methods passing the 10 numbers as an argument and print the results from the main. The method calculateAverage needs to calculate and then return the average of the grades. The method calculateMedian calculates and returns the median of the grades. The method calculateNumberFailed calculates and returns the number of students that failed and calculateNumberPassed calculates and returns the number of students that passes. Grades are numbers between 0.0 and 100.0. The passing grade is 50%. Note that calculateAverage, calculateMedian, and calculateNumberPassed should all work for arrays of arbitrary lengths (and not necessarily 10).

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!