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

 

array_averageOfDoubleArray


Given a double array "arr", return the average value as a double.


array_averageOfDoubleArray([1.0, 2.0, 3.0]) → 2.0
array_averageOfDoubleArray([1.5, 2.25, 3.0]) → 2.25
array_averageOfDoubleArray([2.25, 1.75, 0.0]) → 1.3333333333333333

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

public double array_averageOfDoubleArray(double[] arr) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy