Question

PYTHON ONLY PLEASE (Financial application: compare loans with various interest rates) Write a program that lets...

PYTHON ONLY PLEASE

(Financial application: compare loans with various interest rates)

Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.

Sample Run

Loan Amount: 10000

Number of Years: 5

Interest Rate Monthly Payment Total Payment

5.000% 188.71 11322.74

5.125% 189.29 11357.13

5.250% 189.86 11391.59

...

7.875% 202.17 12129.97

8.000% 202.76 12165.84

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find the required python3 script as the following:

Note: Please mind the text indentation in block scopes. A reference image has been attached for the same (with output).

#=============================================

A = float(input('Enter loan amount: '));

y = float(input('Enter number of years: '));

I = 5; # Starting Annual Interest Rate

while(I<=8):

i = (I/100)/12; # Periodic Interest Rate

n = y*12; # Number of Periodic Payments

D = (((1+i)**n)-1)/(i*((1+i)**n)); # Discount Factor

P = A/D;

print('Interest Rate\tMonthly Payment\tTotal Payment');

print("%.3f%%\t\t\t%.2f\t\t\t%.2f"%(I,P,P*y*12));

I=I+(1/8);

#==========================================

output:

Hope this helps!

********** PLEASE THUMBS UP!!!!!!!!!!!! **********

Add a comment
Know the answer?
Add Answer to:
PYTHON ONLY PLEASE (Financial application: compare loans with various interest rates) Write a program that lets...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a Java program and Flowchart that lets the user enter the loan amount and loan...

    Write a Java program and Flowchart that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 10%, with an increment of 1/4. ????ℎ????????? = ?????????? × ????ℎ?????????????? / 1 − 1 (1 + ????ℎ??????????????) ????????????? ×12 ????????????? = ????ℎ????????? × ????????????? × 12

  • Write a python program for the below question? Car Loan If A dollars is borrowed at...

    Write a python program for the below question? Car Loan If A dollars is borrowed at r% interest compounded monthly to purchase a car with monthly payments for n years, then the monthly payment is given by the formula monthly payment = i / 1 - (1 + i)-12n . A where i = r/1200. Write a program that calculates the monthly payment after the user gives the amount of the loan, the interest rate, and the number of years.

  • Program Specification: This project involves implementing a Java program that performs a calculation of payments associated...

    Program Specification: This project involves implementing a Java program that performs a calculation of payments associated with loans. The program shall allow a user to enter the following data: annual interest rate the loan (i.e. , number of years), and the loan amount. A GUI like the one below must be used. Loan Calculator Annual Interest Rate: Number of Years Loan Amount: Monthly Payment Total Payment Calculate When the user presses the calculate button, the monthly payment and total amount...

  • C# Create an application that will allow a loan amount, interest rate, and number of finance...

    C# Create an application that will allow a loan amount, interest rate, and number of finance years to be entered for a given loan. Determine the monthly payment amount. Calculate how much interest will be paid over the life of the loan. Display an amortization schedule showing the new balance after each payment is made. Design an object-oriented solution. Use two classes. Loan class: characteristics such as the amount to be financed, rate of interest, period of time for the...

  • The program is in python :) Write a code program to calculate the mortgage payment. The...

    The program is in python :) Write a code program to calculate the mortgage payment. The equation for calculating the mortgage payment is: M = P (1+r)n (1+r)n-1 Where: M is your monthly payment P is your principal r is your monthly interest rate, calculated by dividing your annual interest rate by 12. n is your number of payments (the number of months you will be paying the loan) Example: You have a $100,000 mortgage loan with 6 percent annual...

  • Program Requirements ·         The program prompts the user to enter a loan amount and an interest rate....

    Program Requirements ·         The program prompts the user to enter a loan amount and an interest rate. ·         The application calculates the interest amount and formats the loan amount, interest rate, and interest amount. Then, it displays the formatted results to the user. ·         The application prompts the user to continue. ·         The program stops prompting the user for values after taking 3 loan amounts. ·         The application calculates and displays the total loan and interest amount and ends the program Example Output Welcome to...

  • Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives...

    Please I wish you use Python 3.7 for this problems. Q1. Write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print the sum of the numbers and their average. Q2. The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of...

  • 6. Loan Calculator The e most common types of loans are mortgage loans, which are tinance...

    6. Loan Calculator The e most common types of loans are mortgage loans, which are tinance the purchase of a house, and car loans. A loan consists of four com- L1 ponents--amount, interest rate, duration, and periodic payment. The purpose values of the other three components. prograrmming project is to calculate the value of any one of the components given the We will ascurme that the duration is in months, that interest (given as a percent) i gages typically have...

  • c++ and please add tables and everything and make sure program is complete. Write a menu...

    c++ and please add tables and everything and make sure program is complete. Write a menu driven program, which would compute compound interest and a monthly payment for a loan. The user will be given a choice to display the info on the screen or to a filo Menu will be the following Enter (1) to calculate your loan monthly payment Enter (2) to calculate your loan monthly payment & write to a file Tips: Compound Interest Formula A =...

  • A bank offers college loans that can be repaid in 5, 10, 15, 20, 25, or...

    A bank offers college loans that can be repaid in 5, 10, 15, 20, 25, or 30 years. Write an app that allows the user to enter the amount of the loan and the annual interest rate. Based on these values, the app should display the loan lengths in years and their corresponding monthly payments.   Design the form window using javaFX as follows: Enter the Amount Of Loan and Interest Rate using TextField objects (remember that it will be necessary...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT