Question: Please help me with this homework assignment I'm extremely stressed Part b. (20 of 45 points) Now assume, you saved your function in a le
Please help me with this homework assignment I'm extremely stressed

Part b. (20 of 45 points) Now assume, you saved your function in a le called calc.py. In another le, write a short program which asks the user for the amount to invest and the number of years and then reports the expected outcome (rounded to the nearest cent) of investing by considering three options: interest is compounded once a year, 4 times a year, or monthly. Your program should be printing either: (a) In any case, you will not earn over 850. (b) You can earn between Quin) and on. Where (min) and men stand for the minimum and the maximum amount of interest that can be earned. Write your program to call the function invest () saved in calc .py and use the value returned to make the remaining decisions. Beiow are two runs of the program (the user prompt is shown with ' => \")1 Enter the amount to Invest => 110 Enter the nunber of years => 5 In any case, you will not earn over $50. Enter the amount to invest -> 101000.5 Enter the number or years -> 3 You can earn between 6182.04 and 6240.17
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
