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

 

siochi@cnu.edu > arrayAve
prev  |  next  |  chance

arrayAve() -- given a double array, return the average of the elements of the array


arrayAve([1.0, 1.0, 1.0]) → 1.0
arrayAve([1.0, 2.0]) → 1.5
arrayAve([1.0, 2.0, 3.0]) → 2.0

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

public double arrayAve(double[] nums) { }

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: 220 Post-solution available

Copyright Nick Parlante 2017 - privacy