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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
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