Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program to print out a table showing the total balances at the end of each year for various interest rates. The program

write a program to print out a table showing the total balances at the end of each year for various interest

write a program to print out a table showing the total balances at the end of each year for various interest rates. The program will take (a) the initial deposit, (b) the target interest rate, (c) the years of deposit as the inputs from the user. The program will calculate interest and balance for each year at different interest rates and then print out the results in the screen. Requirements: Your program should use at least one of each loop structure: while, do-while, and nested for-loop. [3] Input: Initial deposit, interest rate, years of balances. You may assume the input types are correct (int, double). [4] Output: A suggested output is shown below. Your output does not have to look exactly the same. Intial deposit? 10000 Interest rate? 1.1 Number of years? 9 Balances at the end of each year: Beginning Ending Year Balance Interest Balance 1 10000.00 110.00 10110.00 2 10110.00 111.21 10221.21 3 10221.21 112.43 10333.64 4 10333.64 113.67 10447.31 5 10447.31 114.92 10562.23 6 10562.23 116.18 10678.42 7 10678.42 117.46 10795.88 8 10795.88 118.75 10914.64 9 10914.64 120.06 11034.70 10 11034.70 121.38 11156.08 Do you wish to try again? (Y/N)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Heres a Python program that calculates and displays the total balances at the end of each y... 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_2

Step: 3

blur-text-image_3

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

Fundamentals of Ethics for Scientists and Engineers

Authors: Edmund G. Seebauer, Robert L. Barry

1st Edition

9780195698480, 195134885, 195698487, 978-0195134889

More Books

Students also viewed these Programming questions