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

 

adjustedAverage


An adjusted average is calculated as follows: Find the highest score. Adjust each score by the number of points required so the highest score is equal to 100. Calculate the average of those three scores. For example, if all three students scored an 80 out of 100 then the highest score is 80, so all three score are raised by 20 points, making the average 100!


adjustedAverage(80, 80, 80) → 100
adjustedAverage(100, 100, 100) → 100
adjustedAverage(50, 75, 100) → 75

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

public int adjustedAverage(int a, int b, int c) { }

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: 150

Copyright Nick Parlante 2017 - privacy