Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Money grows when it is invested. Use input statements with prompts to ask the user for the amount they are going to save, number of

Money grows when it is invested.
Use input statements with prompts to ask the user for the amount they are going to save, number of years they will allow the sum to grow, and the interest rate. Convert the three values to floats. Use the formula and assume that the number of periods per year is one. Calculate the final value and display a helpful message. Use an interest rate of 8%,20 years, and 5000.00 to test your answer. Debug the code given.
location = input('')
warehouse = location[0:2]
room = location[2:4]
column = int(location[4:7])+2
shelf = int(location[7:10])-4
height = location[10:]
new_location = warehouse + room + str(column).zfill(3)+ str(shelf).zfill(3)+ height
print(new_location) The expected output should be "in 20.0 years, your investment of 5000.0 will be worth 23304.78571924654"

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

=+ c. a company president deciding whether to open a new factory

Answered: 1 week ago