subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
You know the right answer?
Write a java program that calculates a bank account balance at the end of a year. the input is initi...
Questions
question
Mathematics, 12.11.2020 21:00
question
French, 12.11.2020 21:00
question
Mathematics, 12.11.2020 21:00
Questions on the website: 13722367