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

 

simona1@sfusd.edu functions3 > getInterest
prev  |  next  |  chance

There is a bank account that earns 4.5 percent interest per year. Given the account balance, return the interest amount earned by the account after one year. (Difficulty Level: 1)


getInterest(200) → 9.0
getInterest(1000) → 45.0
getInterest(50000) → 2250.0

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

public double getInterest(double balance){ }

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