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

 

findPosAverage


Write a method called public double findPosAverage(int x, int y, int z) that will find and return the average of all the numbers (but disregarding the - sign). so if it is negative, pretend it is positive. So average of -4,5,-8 would return 17/3 or 5.66667


findPosAverage(-4, 5, -9) → 6.0
findPosAverage(3, -6, 6) → 5.0
findPosAverage(-10, 11, -6) → 9.0

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

public double findPosAverage(int x, int y, int z) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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