Question: Subjects: Write a python program that functions as a loan calculator. This program lets the user enter the annual interest rate, the number of years
Subjects: Write a python program that functions as a loan calculator. This program lets the user enter the annual interest rate, the number of years of the loan, and the loan amount, and computes and displays the monthly payment and total payment. This program assesses your knowledge on Chapters 1&2 materials. This is a team-based assignment, but you can work by yourself if you prefer. Please include the names of your team members as comments at the top of the python file, and each team only needs to submit one copy on Canvas. Instructions: The formula for the monthly payment of a loan is given by Even though monthly payment is calculated based on the monthly interest rate, a loan term is usually defined by an annual interest rate. So when you ask users to enter the loan terms, you should always ask for the annual interest rate. Then in your program you will calculate the monthly interest rate and use it to calculate the monthly payment. Be sure to handle user inputs as the following: the annual interest rate as a float, the number of years of the loan as an int, and the loan amount as a float. I'm sure you can figure out how to calculate the total payment of a loan; if not, then the total payment is just the monthly payment times the total number of payments. First, you need to design the program. In a Word or text document, please define either the algorithm, or pseudo code, or the flowchart for this loan calculation problem-this is required. Next, write the python code based on your design. You can choose the names of variables, how many variables to use, the exact format of the output, etc. But make sure to format the monthly and total payment with 2 decimal places. Name the file with your team number, or team name, or members' last names. Fix any syntax errors and test your code if you can. For example, for a 10 -year loan of $100000 at 5% annual rate, the monthly payment will be 1060.66 and the total payment will be 127278.62. Save your file (especially if you can't run it). Submit both the python file and your program design file through Canvas for grading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
