Question
Please do this in java 1. Saving the more than just the world Instructions Today, we will look at saving money. You will be given
Please do this in java 1. Saving the more than just the world Instructions Today, we will look at saving money. You will be given a starting balance and an interest rate. You will then calculate the balance you would have after each of the first ten years after putting your money into savings. Details Input Input consists of: a positive floating point representing the initial balance (named balance) a positive integer representing the interest rate. This is read in a percentage, but stored in a double variable (named RATE) after division by 100.0! Processing You will need to calculate the balance after each of the next ten years. Your calculations might look something like this: balance = balance + balance * RATE Output Structure your code so that you output the balance for years 0 through 9 in the form: {year number} {balance after that many years} Sample input/output: Input Output 1000 10 1 1210.0 2 1331.0 3 1464.1 4 1610.51 5 1771.561 6 1948.7170999999998 7 2143.5888099999997 8 2357.947691 9 2593.74246019 2591
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started