subject

Write a program that calculates the balance of a savings account at the end of a three-month period. it should ask the user for the starting balance and the annual interestrate. a loop should then iterate once for every month in the period, performing thefollowing steps: a) ask the user for the total amount deposited into the account during that monthand add it to the balance. do not accept negative numbers. b) ask the user for the total amount withdrawn from the account during thatmonth and subtract it from the balance. do not accept negative numbers ornumbers greater than the balance after the deposits for the month have beenadded in. c) calculate the interest for that month. the monthly interest rate is the annualinterest rate divided by 12. multiply the monthly interest rate by the average ofthat month%u2019s starting and ending balance to get the interest amount for themonth. this amount should be added to the balance. after the last iteration, the program should display a report that includes the following information: %u2022 starting balance at the beginning of the three-month period%u2022 total deposits made during the three months%u2022 total withdrawals made during the three months%u2022 total interest posted to the account during the three months%u2022 final balance

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 06:40
What are the three uses of a screw?
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
You know the right answer?
Write a program that calculates the balance of a savings account at the end of a three-month period....
Questions
question
English, 23.06.2021 03:20
question
Arts, 23.06.2021 03:20
question
Mathematics, 23.06.2021 03:20
question
Mathematics, 23.06.2021 03:20
Questions on the website: 13722361