Question: WRITE IN JAVASCRIPT CAN NOT USE ANY EXTERNAL FILES OR LIBRARIES FILE MUST BE CONFIGURED FOR STRICT MODE MUST BE ORIGINAL WORK PLEASE function _determineClassGrading(
WRITE IN JAVASCRIPT
CAN NOT USE ANY EXTERNAL FILES OR LIBRARIES
FILE MUST BE CONFIGURED FOR STRICT MODE
MUST BE ORIGINAL WORK PLEASE
function _determineClassGrading( array )
Create a JavaScript function that meets the following requirements:
Receives a variable length array of numbers, representing student grades in a course
The function traverses the array to determine the number of passing and failing grades.
A passing grade, is grade greater than or equal to 50
The function displays the count (console log) for the number passing grades, failing grades and overall class average as illustrated below
Average class grade is rounded to 1 decimal point The function returns the array containing the number of passing grades, the number of failing grades, and the overall averages of the grades, respectively, back to the caller
EXAMPLE
_determineClassGrading([50,51,80,45]) [3,1,56.5]
_determineClassGrading ([35,45,25,10,6,33]) [0,6,25.7]
_determineClassGrading ([80,90]) [2,0,85.0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
