I was wondering if someone could show me an example of a future value calculator:
" F = P(1+rate)^t "
F = future value
P = initial deposit (principal)
rate = (annual) interest rate (expressed as a fraction, e.g. 0.06)
t = number of years invested
The user needs to be able too input each parameter:
"Please input the principal: ______"
"Please input the annual interest rate: ______"
"Please input the number of years invested: ______"
The program should run the calculator and output the information:
"The future value of your investment after ___ years is : ______"
, Ranch Hand
> I was wondering if someone could show me an example of a future value calculator:
if you are a beginner, have a crack at it yourself - you'll learn more that
way (the downside is you may end up with a few self-inflicted wounds!)
if you get stuck, post a specific question and include the code you've tried.
I was going to... I just wanted to compare my results to someone elses.
Here is my code I came up with:
How does it look?
Jesper de Jong
It looks good.
This thread has been viewed 5635 times.
All times above are in ranch (not your local) time.
The current ranch time is
Sep 23, 2018 12:33:35.