Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Help Please Valid values for inputs : -Loans: A real number >= 0 -Annual loan interest rate: a real number >= 0 -Minimum payment:
Python Help PleaseValid values for inputs :
-Loans: A real number >= 0
-Annual loan interest rate: a real number >= 0
-Minimum payment: a real number >= 0
-Investment money: A real number >= minimum payment
-Current age: an integer >= 0
-Retirement age: an integer >= current age
-Annual rate of return: a real number >= 0
Examples:
Thx!
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 . . o 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 valic If invalid input is received your program should continue to ask for more input until a valid value is entered While input may be invalid it will always be of the correct type o oStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started