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

 

findAvgDroppingLowest


Write a method called public double findAvgDroppingLowest(int x, int y, int z) that will find the average, dropping the lowest value and return that value. So if findAvgDroppingLowest (5,2,8) gets called, it returns 6.5 (it drops 2, and finds avg of 5 and 8). If there are 2 or 3 lowest it drop just one of them.


findAvgDroppingLowest(1, 2, 3) → 2.5
findAvgDroppingLowest(5, 1, 20) → 12.5
findAvgDroppingLowest(15, 15, 10) → 15.0

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

public double findAvgDroppingLowest(int x, int y, int z) { }

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