subject

Write a java program that reads a bank saving account balance and an interest rate and give the output of the account in 5 years and show the amount of the composited account of (1) first yearly, the interest is added once per year at the end of the year. (2) When monthly,

the interest is added 12 times per year, for example if the rate is 8 annually, monthly will be 8/12 and (3) When daily, the interest is added 365 times per year, so if the rate is 8 annually, daily will be 8/365. You do not have to worry about leap years; assume

that all years have 365 days

Your program should have also an outer loop that allows the user to run it again for a new balance and interest rate. The program should be ask the user (“do you want to run it again, enter y/yes for yes or n/no for no ”)

Enter balance from the keyboard
Enter interest from the keyboard
Calculate the composite the value of the composited amount
Yearly the loop should run 5 times
Monthly the loop should run 60 times (5*12)
Daily the loop should run 1825 ( 5*365)
Hint

Formula

balance = balance + (interestRate/100) * balance

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, dramaqueenactr2040
Two technicians are discussing the common u-joint. technician a says its input and output speeds should be equal. technician b says that it normally has two yokes. which technician is correct?
Answers: 1
image
Computers and Technology, 22.06.2019 11:00, Lacey9319
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
image
Computers and Technology, 23.06.2019 10:00, serenityharmon1
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
image
Computers and Technology, 23.06.2019 22:50, atifgujar
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
You know the right answer?
Write a java program that reads a bank saving account balance and an interest rate and give the outp...

Questions in other subjects:

Konu
Mathematics, 28.09.2019 17:50
Konu
History, 28.09.2019 17:50