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 numbers from the user in the main method. These numbers represent students' grade. Once the numbers are obtained, you will need to call the four other methods passing the 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 and The passing grade is Note that calculateAverage, calculateMedian, and calculateNumberPassed should all work for arrays of arbitrary lengths and not necessarily
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
