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, 21.06.2019 22:30
What are compression artifacts? 1) visible defects in the picture caused by the nature of the compression algorithm. 2) numbers that tell a web server how much to compress a picture for faster transmission. 3) invisible defects in the picture preserved by lossless compression. 4) numbers that tell a photo editing program how much to compress a picture for faster transmission.
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
20 points archie wants to use a reflector as he photographs a newlywed couple. what would he consider in his choice? a. shadow and sunny b. homemade and professional c. lamps and boards d. incident and reflected e. neutral density and enhancement
Answers: 3
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
Chemistry, 14.01.2021 02:10
question
French, 14.01.2021 02:10
Questions on the website: 13722360