Question: While going over your expenses, your financial adviser noticed that you have been eating out too often lately. He suggests that you cut down your

 While going over your expenses, your financial adviser noticed that you

While going over your expenses, your financial adviser noticed that you have been eating out too often lately. He suggests that you cut down your restaurant bill and put the money saved into your IRA instead. Considering taking his advice, you decide to develop a program to help you and other users estimate the financial impact of this proposed IRA investment. Create a python program that does the following: Ask users to enter an estimated dollar amount for monthly restaurant bill. Decide the tip amount: Suppose that users usually give 18% tips, calculate the corresponding tips for the estimated monthly restaurant bill. Decide the monthly IRA investment: Add the tips to the monthly restaurant bill and the result will be the monthly IRA investment. Ask users to enter the number of years that they plan to save (invest) in this way. Suppose that you use 5% as the annual interest rate. Calculate the future value of this investment (of savings from restaurant bill) using this formula: futureValue = monthlyInvestment [(1+r)N1]/r, where N= number of investment periods, and r= interest rate per period. Since users invest monthly, here N= number of years * 12 and r= annual interest rate/12. Feel free to define variables to represent N and r to simplify the formula entry. Please follow the name convention and python rules to properly name the variables, i.e., do not copy the names literately from the formula. Display a message specifying the monthly restaurant bill, tip, and total saving per month and informing users the future value of their investment. You should write the output message using variables and customized Strings. Fix any syntax errors and test your code if you can. For a $100 monthly restaurant bill, 18\% tip rate, 1-year IRA saving at 5% annual rate, the future value will be 1448.9. Save your file (especially if you can't run it). Submit the python file through Canvas for grading. Check the rubric on Canvas

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!