Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Savings Exercise The idea here is to see how many years it will take a bank account to grow to at least a given value,

image text in transcribed

Savings Exercise The idea here is to see how many years it will take a bank account to grow to at least a given value, assuming a fixed annual interest. Write a program savings.py. Prompts the user for three numbers: an initial balance, the annual 3.3. While Statements 145 Hands-on Python Tutorial, Release 1.0 for Python Version 3.1+ percentage for interest as a decimal. like .04 for 4%, and the final balance desired. Print the initial balance, and the balance each year until the desired amount is reached. Round displayed amounts to two decimal places, as usual The math: The amount next year is the amount now times (1 + interest fraction), so if I have $500 now and the interest rate is.04, I have $5001.04) $520 after one year and after two years I have, $520* (1.04) $540.80. If I enter into the program a S500 starting balance, 04 interest rate and a target of S550, the program prints: 500.00 520.00 540.80 562.43

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_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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

What statements did you use? In what tone of voice?

Answered: 1 week ago

Question

8. Design office space to facilitate interaction between employees.

Answered: 1 week ago