posted 11 years ago
Hi All,
I was wondering if someone could show me an example of a future value calculator:
" F = P(1+rate)^t "
where
F = future value
P = initial deposit (principal)
rate = (annual) interest rate (expressed as a fraction, e.g. 0.06)
t = number of years invested
Also,
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: ______"
Then,
The program should run the calculator and output the information:
"The future value of your investment after ___ years is : ______"
Thanks,
Evan
I was wondering if someone could show me an example of a future value calculator:
" F = P(1+rate)^t "
where
F = future value
P = initial deposit (principal)
rate = (annual) interest rate (expressed as a fraction, e.g. 0.06)
t = number of years invested
Also,
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: ______"
Then,
The program should run the calculator and output the information:
"The future value of your investment after ___ years is : ______"
Thanks,
Evan
posted 11 years ago
> 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 selfinflicted wounds!)
if you get stuck, post a specific question and include the code you've tried.
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 selfinflicted wounds!)
if you get stuck, post a specific question and include the code you've tried.
Evan Cristofori
Greenhorn
Posts: 18
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
The WEB SERVICES and JAXRS Course
https://coderanch.com/t/690789/WEBSERVICESJAXRS
