Computers and Technology

Write a java program that calculates a bank account balance at the end of a year. the input is initial balance, interest rate and number of times the interest is calculated (called compounding period). the formula to calculate the new balance is given below: new_balance = initial_balance*(1+interest_rate/n) n where n is the compounding period: n=1 for annually, n=2 for semiannually, n=4 for quarterly, n=12 for monthly and n=360 for daily. your program should contain a program header (program description, your name and date etc), define variables to store initial balance, new balance, interest rate and compounding period. and then use the formula to do the calculation with interest rate 3.5% and n of your choice for initial balance = 1,000, 2,000, 3,000, 4,000, 5,000, 6,000, 7,000, 8,000, 9,000, and 10,000 dollars respectively using a loop. the output should have the following format: for initial balance of 1,000, the account balance at the end of one year is and the interest is for initial balance of 2,000, the account balance at the end of one year is and the interest is for initial balance of 10,000, the account balance at the end of one year is and the interest is where are the result of your program.

answer
Answers: 1

Similar questions

Do you know the correct answer?
Write a java program that calculates a bank account balance at the end of a year. the input is initi...

Questions in other subjects:

Konu
Mathematics, 29.05.2021 01:00
Konu
Mathematics, 29.05.2021 01:00