Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve the question through python Problem 2 (33 points): Remember the mortgage calculator from Assignment 4? Lets do another one, but this time, allowing

please solve the question through python image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Problem 2 (33 points): Remember the mortgage calculator from Assignment 4? Lets do another one, but this time, allowing free form text from the user. You will have to be more careful with validation on this version. Develop a GUI named MortgageCalculator that can be used to calculate the monthly payment of a mortgage. The mortgage monthly payment can be calculated as follows: o P Principal (the amount of the loan) as a decimal o N- Term of Loan (how many years to pay off the loan) as an int. o R The interest rate on the loan as a decimal. o The values will be used to compute the following formula: r/1200.0 1-(1.0+r/1200.0) Test your calculation/output here: https://www.easycalculation.com/mortgage/loan-payment amount.php This is the default view. You need to use grid0 for layout. Mortgage calculator- Principal Interest Rate Term in Years Calculate Payment The layout consists of 3 labels, 3 entry text boxes and 1 button. For example. When calculating the mortgage for the following values: Mortgage cal... Term in Years 30 Calculate Payment A popup shows the result. Notice formatting! I will be taking 10 points off for incorrect format! The values should be treated as float0. Your monthly payment is $536.82. OK Principal Term in Years 30 They are warned that an incorrect value was entered for principal Error, Incormect value entered for principal. oK This applies to Interest and Terms as well: Principal 10000 Interest Rate a Term in Years 30 OK What can happen if the users all 0s? Divide by Zero! All errors should be caught Principal Interest Rate Term in Years Monthly Payment Error, Unable to calculate payment oK You will ran the program using MortgageCalculatorO.mainloopo. The constructor has been written for you and can be found in the template uploaded to D2L. Do not change these methods. Instead you must fill in all the methods

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

Robotic Kitchen Arm is considered as General AI . TRUE FALSE

Answered: 1 week ago