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

 

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

Igloos are melting!!! Your goal is to return how many igloos are left. You start with 'startNum' igloos. They are melting at 'meltRate' igloos per day, for 'days' days. Return the number of igloos remaining or zero if they have all melted.


iglooMelt(20, 5, 2) → 10
iglooMelt(7, 2, 3) → 1
iglooMelt(88, 11, 3) → 55

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

public int iglooMelt(int startNum, int meltRate, int days) { }

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

Copyright Nick Parlante 2017 - privacy