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

 

sspiege3@schools.nyc.gov > averageLabScore
prev  |  next  |  chance

Write a method that takes an array of lab scores (A+, A, A-, B, C, D, or F) and returns the average score rounded to the nearest integer. These scores have the following respective values (100, 95, 90, 85, 75, 60, 0).


averageLabScore(["A+", "A+", "A+", "A+"]) → 100
averageLabScore(["A+", "A", "A", "A+"]) → 98
averageLabScore(["A"]) → 95

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

public int averageLabScore(String[] scores) { }

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

Copyright Nick Parlante 2017 - privacy