about | help | code help+videos | done | prefs |
testGrader
Given two ArrayList of String with the same size(), answers and key, check if the values in answers match the corresponding value in key. If they match it counts as 4 points. If they do not match it counts as -1, Unless the answer was "" the empty string, in which case 0 points are awarded. You may testGrader(["", ""], ["hi", "ho"]) → 0 testGrader(["hi", "ho"], ["hi", "ho"]) → 8 testGrader(["HI", "HI"], ["hi", "hi"]) → -2 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy