Menu
can some one work up a script for me ok Hold UP I need this in straight JAVA.
public void main…etc.. JAVA
A person invests $20,000 in a savings account yielding 5% interest.
Assuming that all the interest is left on deposit and there are no withdrawals.
Calculate and print out the amount of money in the account at the end of each year for 10 years.
Use the following formula for determining these amounts
s=p*(1+t) y
Where
P is the original amount invested (i.e. the principal capital)
t is the annual interest rate
y is the number of years
s is the total amt of money at the end of the Yth year