Question: Step 3 : Implement buildDistributionArray ( ) ( 2 points ) Implement the buildDistributionArray ( ) function to take an array of scores, built by

Step 3: Implement buildDistributionArray()(2 points)
Implement the buildDistributionArray() function to take an array of scores, built by parseScores(), as an argument. The function should return a grade distribution array of length 5.
The function should loop through the scores array and tally up the number of A, B, C, D, and F scores using the standard scoring system (90 and above =A,80-89=B,70-79=C,60-69=D,59 and below =F). The grade totals should be stored in a distribution array where the number
of.As is the first number, number of B s is the second number, etc.
Ex: buildDistributionArray(["45","78","98","83","86","99","90","59"]) should return [3,2,1,0,2].
buildDistributionArray() should return 0,0,0,0,0 when the scoresArray argument is an empty array.
Step 3 : Implement buildDistributionArray ( ) ( 2

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 Programming Questions!