id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com > gradeFrequency
prev  |  next  |  chance

Given an array of test scores - with the method to count the number of A's, B's, etc and return in an array the count of each. ans[0] = number of A's , ans[1] = number of B's, etc. If array is empty return [0,0,0,0,0]


gradeFrequency([100, 90]) → [2, 0, 0, 0, 0]
gradeFrequency([100, 80, 70, 60, 50]) → [1, 1, 1, 1, 1]
gradeFrequency([]) → [0, 0, 0, 0, 0]

...Save, Compile, Run (ctrl-enter)

public int[] gradeFrequency(int [] nums) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 120

Copyright Nick Parlante 2017 - privacy