In JAVA,The “key” array is an array containing the correctanswers to an exam, like {“a”, “a”, “b”, “b”}. the “answers” arraycontains a student’s answers, with “?” representing a question leftblank. The two arrays are not empty and are the same length. Returnthe score for this array of answers, giving +4 for each correctanswer, -1 for each incorrect answer, and +0 for each blankanswer.
scoreUp([“a”, “a”, “b”, “b”], [“a”, “c”, “b”, “c”]) → 6
scoreUp([“a”, “a”, “b”, “b”], [“a”, “a”, “b”, “c”]) → 11
scoreUp([“a”, “a”, “b”, “b”], [“a”, “a”, “b”, “b”]) → 16
Expert Answer
An answer will be send to you
PayPal Gateway not configured
PayPal Gateway not configured