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

 

jebbert@volusia.k12.fl.us > dec16_2019_APP1SLHL_sumBelow
prev  |  next  |  chance

Write a method that returns the sum of all of the numbers in the array 'nums', but only include numbers below the number 'max'. Look at the test data for examples.


dec16_2019_APP1SLHL_sumBelow([-14, -5, 16, 22, 38, 38, 38, -2, -1], 17) → -6
dec16_2019_APP1SLHL_sumBelow([60, 30, 40, 50, 10], 37) → 40
dec16_2019_APP1SLHL_sumBelow([27, 34], 1) → 0

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

public int dec16_2019_APP1SLHL_sumBelow(int[] nums, int max) { }

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

Copyright Nick Parlante 2017 - privacy