Question
PYTHON CODE ONLY!!!! ****Can ONLY implement {if_elif_else, try_except, for loops, while loops}***** Now suppose that you are a super responsible person (and somewhat obsessive and
PYTHON CODE ONLY!!!! ****Can ONLY implement {if_elif_else, try_except, for loops, while loops}*****
Now suppose that you are a super responsible person (and somewhat obsessive and compulsive and boring), and instead of spending money borrowing on a luxury car, you decide to start saving for retirement. Since these projections are long-term, it is not reasonable to assume that your salary will remain constant for all those years. Let's assume that your salary increases every 2 years as shown in the figure. That is, the first 24 months remains the same, but from month 25 it increases to 1.1 times the initial salary and remains constant until month 48, in month 49 it increases to 1.2 times the initial salary ... and so on. following the values of the graph. Note that the last increase occurs in month 193, thereafter it remains constant until it is withdrawn.
Design an algorithm and implement it as a Python function that you receive from the user: (1) the amount you open the account, (2) monthly salary, (3) percentage of salary you will save, (4) the annual interest computed monthly that pays the account where you are depositing the money and (5) the savings goal you have. The algorithm must return to the user: (1) how many months it would take to reach the goal, (2) how much money would be in the account at that time and (3) how much of that money corresponds to interest earned. Taking into account that your salary increases as explained above and shown in the figure. Submit a desk test when the account is opened with $ 2,000,000, your monthly salary is $ 5,000,000, the percentage of salary you will save is 20%, the account pays 6% per year computed monthly, and the goal is to save $ 64048,975. This test is going to require many iterations, you can use a table in Excel to do it ... but make sure you are actually following the flow of your function. Run the function with those same valuesand present a screenshot of the screen.
salario / saiarrio.inicial 2.0 1.9 1.8 1.7 1.6 1.5 0 1.4 1.3 1.2 0 1.1 1.0 0 24 48 72 96 120 144 168 192 216 mesesStep 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