Question

Devise an app (use a GUI) to calculate and display loan repayments. The user will enter...

Devise an app (use a GUI) to calculate and display loan repayments. The user will enter in a loan amount, term and interest rate. You calculate the periodic amount due and display it to the user. The formula you need is below. A=P{\frac {i(1+i)^{n}}{(1+i)^{n}-1}}={\frac {P\times i}{1-(1+i)^{{-n}}}}=P\left(i+{\frac {i}{(1+i)^{n}-1}}\right) where: A = periodic payment amount P = amount of principal i = periodic interest rate e.g. 7.5% per year / 12 months = 0.625% per period n = total number of payments e.g. 5 years * 12 months = 60 total periods

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

''' This code has been written in python 3'''

from tkinter import *

master = Tk()
master.title("Periodic Amount Due")
'''Defining Variable to be used in text variable of entry'''
periodicAmount = DoubleVar()
term = DoubleVar()
interestRate = DoubleVar()
loanAmount = DoubleVar()

''' Define Label for the entry field with grid'''
Label(master, text='Loan Amount').grid(row=0)
Label(master, text='Term').grid(row=1)
Label(master, text='Interest Rate').grid(row=2)
Label(master, text='Periodic Amount due').grid(row=4)

'''Which label will records which data'''
e1 = Entry(master, textvariable=loanAmount)
e2 = Entry(master, textvariable=term)
e3 = Entry(master, textvariable=interestRate)
e4 = Entry(master,textvariable=periodicAmount)
'''UI set'''
e1.grid(row=0, column=1)
e2.grid(row=1, column=1)
e3.grid(row=2, column=1)
e4.grid(row=4, column=1)


def getPeriodicAmount():
loanAmount1=loanAmount.get()
term1=term.get()
interestRate1=(interestRate.get()/12)
periodicAmount1 = loanAmount1*(interestRate1*((1+interestRate1)**term1))/(((1+interestRate1)**term1)-1)
periodicAmount.set(round(periodicAmount1,2))

'''Button to get periodic amount due'''
Button(master, text="get", width=10, command=getPeriodicAmount).grid(row=3)

'''Button to close the app'''
Button(master, text="Close the app", width=10, command=master.destroy).grid(row=5)
mainloop()

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
Devise an app (use a GUI) to calculate and display loan repayments. The user will enter...
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
  • 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...

  • 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...

  • using Matlab program: Create a loan payment program that can be used for any loan amount...

    using Matlab program: Create a loan payment program that can be used for any loan amount such as a home or car loan. The program should ask the user for the input values below, compute the monthly payment, then compute the monthly balance. Display the balance in a table Month             Balance 1                      $ ##.## 2                      $ ##.## 3                      $ ##.##       . . . etc Use the formula PMT=P*(r(1+r)^n)/((1+r)^n-1) PMT = the monthly payment. P = the principal r = the interest rate per month, which...

  • A fitness tracking app company has asked you to develop a windows application using a GUI...

    A fitness tracking app company has asked you to develop a windows application using a GUI to determine the total amount of hours somebody has exercised during their lifetime, assuming on average a user has exercises 2.5 hours per week. When the user uses the app, they will enter the following: First Name: Last Name: Date of Birth (in mm/dd/yyyy): Current Date (in mm/dd/yyyy) This program should display the users name and the number of hours the user has exercised...

  • 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...

  • In C. Thank you! Bank Write a program to calculate the monthly payment on a loan...

    In C. Thank you! Bank Write a program to calculate the monthly payment on a loan given the loan amount, interest rate and the number of years to pay off the loan. Then add a function to print an amortization schedule for that loan. Create a class to save the current balance and the rest of the data as private data. Add member functions to make a payment and to print the amortization report. Use the following class header. Class...

  • 1. In Cell D8 create formula PMT=PV/((1-1/(1+k)^n)/k), to calculate the periodic payment on a loan. 2....

    1. In Cell D8 create formula PMT=PV/((1-1/(1+k)^n)/k), to calculate the periodic payment on a loan. 2. In cell F8 use built-in function =PMT(k,n,PV). You should get identical answers. 3. Create amortization table (use absolute and relative addressing where appropriate). 4. Print worksheet. 5. Change loan amount and the rate (everything should adjust automatically) and print it again. 6. Print the cell formulas (force to one page). 7. Write report and explain all formulas and procedures. 8. Submit four printouts. PMT=$1589.99...

  • Samuel and Sandra Sharp wish to borrow $600,000 to buya home. The loan from the Highway...

    Samuel and Sandra Sharp wish to borrow $600,000 to buya home. The loan from the Highway Bank requires equal monthly repayments over 20 years, and carries an interest rate of 5-1 % per annum, compounded monthly. The first repayment is due at the end of one month after the loan proceeds are received. You are required to calculate the following. i) The effective annual interest rate on the above loan (show as a percentage correct to 3 decimal places). li)...

  • MATLAB!!! CAN SOMEONE SOLVE THIS PROBLEM ON MATLAB?? THANK YOU PART B: HOUSING LOAN CALCULATOR In this part of the assignment, you are expected to develop a program that calculates housing loan pay-...

    MATLAB!!! CAN SOMEONE SOLVE THIS PROBLEM ON MATLAB?? THANK YOU PART B: HOUSING LOAN CALCULATOR In this part of the assignment, you are expected to develop a program that calculates housing loan pay- ments based on compound interest formulas The program should prompt a user to input the amount borrowed (principal), p, the number of monthly payments, n, and an annual interest rate in R percent. The program should convert the annual interest rate R into a monthly interest rate...

  • My library>CptS 111 home> 2.9: zyLab PA #1: Student Loan R oks zyBooks cat @Help/FAQ θ...

    My library>CptS 111 home> 2.9: zyLab PA #1: Student Loan R oks zyBooks cat @Help/FAQ θ Mohammed Al Shukaili 2.9 zyLabPA#1:Student Loan RepaymentCalculator For this assignment you wil write a program to calculate the monthly payments required to pay back a student loan You vill need to prompt the user for the following values Annual interest rate (as a percentage) Number of years to repay loan . and display the output in a readable form. Output should include Amount of...

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
ADVERTISEMENT