Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 interest rate. A loop should then iterate once for every month in the period, performing the following steps: A) Ask the user for the total amount deposited into the account during that month and add it to the balance. Do not accept negative numbers. B) Ask the user for the total amount withdrawn from the account during that month and subtract it from the balance. Do not accept negative numbers or numbers greater than the balance after the deposits for the month have been added in C) Calculate the interest for that month. The monthly interest rate is the annual interest rate divided by 12. Multiply the monthly interest rate by the average of month's starting and ending balance to get interest amount the month. This amount should be added to the balance. After the last iteration, the program should display a report that includes the following information: starting balance at the beginning of the three-month period total deposits made during the three months total withdrawals made during the three months total interest posted to the account during the three months final balance Large and readable screen shot of your input/output window for group below input sets (don't multiple screen shots in single picture, paste each as separate in your word doc): Starting balance: 26000 Annual interest rate[%]: 3.25 Month 1: Deposit 4500, withdrawal 3400 Month 2: Deposit 3700, Withdrawal 2800 Month 3: Deposit 4100, Withdrawal 3500 In order to make sure your program works correctly compare the output of your program with the numbers below for the given sample input: Starting balance: 26000.00 deposits within 3 months: 12300 withdrawals within 3 months: 9700 Amount of Interest within 3 months: 223.76 month 1 ending balance: $27171.91 month 2 ending balance: $28146.72

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

LO14.2 Discuss how game theory relates to oligopoly.

Answered: 1 week ago