Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Files to submit: investments.py Time it took Matthew to Complete: 30 mins Requirements Submit only the files requested Print all floats to 2 decimal points

image text in transcribed
Files to submit: investments.py Time it took Matthew to Complete: 30 mins Requirements Submit only the files requested Print all floats to 2 decimal points unless stated otherwise You MUST use loops to solve this problem Restrictions No global variables may be used . Your program must have at least 1 user defined function Description For this problem you will be figuring out if it is more beneficial to pay off your loans first before investing or if you should only make the minimum payments and invest the rest. Some things to pay attention to . Interest rates given are annual interests rates but we will be assuming that interest is compounded monthly so the real rates to use will be 1/12 of what we are given We will assume that interest is compounded on our accounts before any payments or contributions are made to them If the user has not finished paying off all of their loans when they retire they immediately pay off their loans from their savings It is ok for savings to become negative because of this Cautions about using this program for your own investment strategies All investments inherently carry risk with them This program assumes you are putting your money in a Roth IRA There is an easier way to solve this problem in real life. Remind me to tell you about it. Assumptions . Input will not always be valid 0 If invalid input is received your program should continue to ask for more input until a valid value is entered o While input may be invalid it will always be of the correct type Valid values for inputs . Loans: A real number >= 0

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

Local Consumption And Global Environmental Impacts Accounting, Trade-offs And Sustainability

Authors: Kuishuang Feng, Klaus Hubacek, Yang Yu

1st Edition

1317577272, 9781317577270

More Books

Students also viewed these Economics questions

Question

3. It is the commitment you show that is the deciding factor.

Answered: 1 week ago