Question: Complete the following programs in Python. Ensure that the programs are well documented with comments. Use proper variable names and file names. Ensure that the

Complete the following programs in Python. Ensure that the programs are well documented with comments. Use proper variable names and file names. Ensure that the programs are without errors and giving required results. Problem Description Design and develop a Python program to analyze and process a personal bank loan. The user should enter the following: 1. the amount of the personal loan, (P) 2. the annual rate of interest, and (R) R=R/12, R=0.05 (annual int rate) monthly (R=0.05/12)=0.00415 3. the duration of the loan in months. The output of the algorithm are the following 1. monthly payment installement and the 2. total amount of interest The formula for the monthly payment is Monthly payment=P R/(1-(1+R) ** (N)) Where P is the amount of the loan R is the monthly interest rate (annual rate divided by 12) N is the duration of the loan in months. The formula for the total interest paid is Total interest = N. Monthly payment - P ***** Here is a run sample to test your program with all inputs and outputs Inputs P Amount of loan: 100000 R Interest rate: 5% in decimal 0.05 N Duration 24 months Outputs Monthly Payment: 4,387.14 Total Interest: 5, 291.34
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
