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, 21.06.2019 21:00
If you have a lien on your vehicle, you cannot apply for a duplicate copy of your vehicle’s certificate of title. true or false
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
question
Computers and Technology, 24.06.2019 12:50
Write a new lc-3 trap subroutine (i.e. a subroutine that will be invoked via the trap instruction) that will receive a numeric digit entered at the keyboard (i.e. an ascii character), echo it to the screen, and return in r0 the corresponding numeric value: so if the user types the digit '7', the character '7' will appear on the screen, but the value returned in r0 will be b0000 0000 0000 0111 (#7) you may not use any trap calls in your code - you must implement the "polling" code that interrogates the keyboard status and data registers. ; getnum_tsr ; a subroutine for obtaining a numeric value ; given ascii numeric digit input to keyboard. ; the numeric digit is echoed to the console (e.g. '7' = b0000 0000 0011 0111), ; but the value returned in r0 is the actual numeric value ; corresponding to the digit (e.g. b0000 0000 0000 0111 =
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
question
Mathematics, 06.07.2021 06:10
question
Biology, 06.07.2021 06:10
Questions on the website: 13722367