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 02:20
The reset circuit used on the four 3-bit counters analyzed in this activity reset the counts to zero (000). it makes sense for the up-counters to start at zero (000), but the down-counters should start at seven (111). what would you need to change so that the 3-bit binary down counter with j/k flip-flops you just created would reset to seven (111)?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
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
Mathematics, 20.03.2020 23:29
question
Spanish, 20.03.2020 23:29
question
Mathematics, 20.03.2020 23:29
question
Mathematics, 20.03.2020 23:29
Questions on the website: 13722362