This lab will utilize Python tkinter to write a GUI based mortgage calculation program. You can...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
This lab will utilize Python tkinter to write a GUI based mortgage calculation program. You can use the mortgage calculator program logic you did in previous lab and covert that text-based program to GUI based. You GUI should be similar to the one below: A Lase Te Jan Mortgage Calculator D Loan Amount: Interest Rate % Loan Term (Years): Monthly Payment: Total Paid: Calculate Chart Quit Requirement: 1. You must validate all the data inputs. If any of the data input is NOT a number and the number if <0, then you must display an error message when user select the "Calculate" button. You can also do real-time checking as well (real-time validation is optional), but you must DO the validation when user select "Calculate" if you don't perform real-time validation. 0 0 250000 2.5 a. Test Case #11: enter ten in "Loan Amount" field and select "Calculate". You should get a popup error message like below: E2000-06-07 1941241347THE 30 $987.80 $355,608.81 Ron Sha CNET 142 2020-05-07 14:22:43.766063 Error invalid input Must be positive number > 0 OK Mortgage Calculate Loan Arsoust Interest Rate N Loen Tem (Yeral Monthly Payment Total Paid: Calculate Chert Quit ten 0 0 0 0 2020-08-07 14:24:36.727981 Error invalid input Must be positive number > 0 OK X b. Test case #2: enter the following for next test case: Loan Amount: 250000; Interest Rate: 2.75; Loan Term: 15. You should get something similar as below: Mortgage Calculator a. Loan Amount: Interest Rate %: Loan Term (Years): Monthly Payment: Total Paid: Calculate Chart Quit 250000 b. If user select 2.75 Quit 15 $1,696.55 $305,379.74 2. For the "Monthly Payment" and "Total Paid" fields, they MUST be read only fields. That is, user can't change the value in these fields. Use disabled/normal/readonly option of tk configure 'state' option. 3. For the "Monthly Payment" and "Total Paid" fields, you need to change the font to font-("Arial", 14, "bold", "italic"). You can also set this using the configure option. 4. You need to have two buttons: Calculate Ron Sha CNET 142 2020-05-07 14:24:36.727981 - button color should be "light blue". When the user click button, your program needs to read user data inputs as follows: i. See requirement #1 ii. If all inputs are valid, then display the correct monthly payment in the "Monthly Payment" field, and correct total paid value in “Total Paid" field. HINT: you have to change the field state to normal (i.e. NOT readonly) so you can place value in it. After you place the value, you have to change the filed back to 'readonly' Quit button, then your program will quit/exit Calculate 5. Next to the button, you need to have a textbox that will print out message similar to PrintMeFirst function but instead you need to output the message to this textbox. Also, make sure after you placed PrintMeFirst information into this textbox, this textbox must be readonly so user can't change the value in it. 6. The title of the GUI is "Mortgage Calculator" Rate % 14 12 10 8 6 Mortgage Calculator Loan Amount: 4 Interest Rate %: Loan Term (Years): Monthly Payment: Total Paid: Calculate Chart Quit 7. The background color of the GUI is "light blue" Chart 8. Implement the Chart button so when selected, it will print out the 30 years historical mortgage data line chart. The data file is in the sample file folder. You must Chart 1970 7.43% 14.80% 8.65% 1980 250000 2.75 button, write a program to plot the line chart. When user selected the something similar below will be displayed. Your chart must have label for x-axis (year), y-axis (rate) and interest rate labels on the graph line chart similar to the one below. 11.09% 15 9.68% $1,696.55 $305,379.74 1990 Ron Sha CNET 142 2020-05-07 14:24:36.727981 Historical Mortgage Rate 6.74%6.99% 1 6.45% 2000 5.53% Mortgage Rate 471% X 3.78% 3.34% 2010 2020 This lab will utilize Python tkinter to write a GUI based mortgage calculation program. You can use the mortgage calculator program logic you did in previous lab and covert that text-based program to GUI based. You GUI should be similar to the one below: A Lase Te Jan Mortgage Calculator D Loan Amount: Interest Rate % Loan Term (Years): Monthly Payment: Total Paid: Calculate Chart Quit Requirement: 1. You must validate all the data inputs. If any of the data input is NOT a number and the number if <0, then you must display an error message when user select the "Calculate" button. You can also do real-time checking as well (real-time validation is optional), but you must DO the validation when user select "Calculate" if you don't perform real-time validation. 0 0 250000 2.5 a. Test Case #11: enter ten in "Loan Amount" field and select "Calculate". You should get a popup error message like below: E2000-06-07 1941241347THE 30 $987.80 $355,608.81 Ron Sha CNET 142 2020-05-07 14:22:43.766063 Error invalid input Must be positive number > 0 OK Mortgage Calculate Loan Arsoust Interest Rate N Loen Tem (Yeral Monthly Payment Total Paid: Calculate Chert Quit ten 0 0 0 0 2020-08-07 14:24:36.727981 Error invalid input Must be positive number > 0 OK X b. Test case #2: enter the following for next test case: Loan Amount: 250000; Interest Rate: 2.75; Loan Term: 15. You should get something similar as below: Mortgage Calculator a. Loan Amount: Interest Rate %: Loan Term (Years): Monthly Payment: Total Paid: Calculate Chart Quit 250000 b. If user select 2.75 Quit 15 $1,696.55 $305,379.74 2. For the "Monthly Payment" and "Total Paid" fields, they MUST be read only fields. That is, user can't change the value in these fields. Use disabled/normal/readonly option of tk configure 'state' option. 3. For the "Monthly Payment" and "Total Paid" fields, you need to change the font to font-("Arial", 14, "bold", "italic"). You can also set this using the configure option. 4. You need to have two buttons: Calculate Ron Sha CNET 142 2020-05-07 14:24:36.727981 - button color should be "light blue". When the user click button, your program needs to read user data inputs as follows: i. See requirement #1 ii. If all inputs are valid, then display the correct monthly payment in the "Monthly Payment" field, and correct total paid value in “Total Paid" field. HINT: you have to change the field state to normal (i.e. NOT readonly) so you can place value in it. After you place the value, you have to change the filed back to 'readonly' Quit button, then your program will quit/exit Calculate 5. Next to the button, you need to have a textbox that will print out message similar to PrintMeFirst function but instead you need to output the message to this textbox. Also, make sure after you placed PrintMeFirst information into this textbox, this textbox must be readonly so user can't change the value in it. 6. The title of the GUI is "Mortgage Calculator" Rate % 14 12 10 8 6 Mortgage Calculator Loan Amount: 4 Interest Rate %: Loan Term (Years): Monthly Payment: Total Paid: Calculate Chart Quit 7. The background color of the GUI is "light blue" Chart 8. Implement the Chart button so when selected, it will print out the 30 years historical mortgage data line chart. The data file is in the sample file folder. You must Chart 1970 7.43% 14.80% 8.65% 1980 250000 2.75 button, write a program to plot the line chart. When user selected the something similar below will be displayed. Your chart must have label for x-axis (year), y-axis (rate) and interest rate labels on the graph line chart similar to the one below. 11.09% 15 9.68% $1,696.55 $305,379.74 1990 Ron Sha CNET 142 2020-05-07 14:24:36.727981 Historical Mortgage Rate 6.74%6.99% 1 6.45% 2000 5.53% Mortgage Rate 471% X 3.78% 3.34% 2010 2020
Expert Answer:
Answer rating: 100% (QA)
Executable code Python code using Tkinter import Tkinter using tkMessageBox import tkMessa... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Consider the following scenario: You might have been driving a little too fast when a police officer stops you. Write code to determine the type of ticket you are to receive and the charge of the...
-
BACKGROUND You are an information analyst working for NEE. The company president has asked you to prepare a Quantitative analysis of financial, sales, and operations data to help determine which...
-
In this lab, you complete a partially prewritten C++ program that uses an array. The program prompts the user to interactively enter eight batting averages, which the program stores in an array. The...
-
Suppose a consumer lives in two periods , with his income in period 1 as $100 and his income in period 2 as $150. If the rate of interest in the economy is 12%. Find the equilibrium level of...
-
Entries for Held-to-Maturity Securities on January 1, 2010, Jennings Company purchased at par 10% bonds having a maturity value of $300,000. They are dated January 1, 2010, and mature January 1,...
-
A 0.05-m3 container contains 50 kg of R134a. If the pressure is a) 2.5 MPa b) 240 kPa, what is the state of the refrigerant?
-
Figure P8.43 shows two blocks, one of which is placed on a low-friction table, and supports, by means of a massless rope that runs over a low-friction pulley, the other block, which is suspended in...
-
Westile Company buys plain ceramic tiles and prints different designs on them for souvenir and gift stores. It buys the tiles from a small company in Europe, so at all times it keeps on hand a stock...
-
12. If the velocity-time graph has the shape AMB, what would be the shape of the corresponding acceleration-time graph? (A) a (B) (C) A (D) a A M B time(t)
-
a) A venturimeter is in an installation of 100 mm diameter pipe carrying water. The maximum range available in water-mercury differential pressure gauge is 50 cm of mercury deflection. Find the...
-
Create a star schema for analyzing sales data using PostgreSQL. The data model will contain: Product dimension: it contains information about each product, product ID, product name, number,...
-
What is a global industry? Describe the two most common strategies pursued by firms in global industries.
-
Briefly describe the difference between equity funding and debt financing.
-
What are the advantages and disadvantages of organizing a new firm as a sole proprietorship? Is a sole proprietorship an appropriate form of ownership for an aggressive entrepreneurial firm? Why or...
-
Describe the four primary factors that play a role in determining the nature and intensity of the bargaining power of buyers. How does the bargaining power of buyers have the potential to suppress an...
-
Three days ago Peggy Armstrong sent a lengthy e-mail message to a long-time business acquaintance, asking the acquaintance if shed consider cofounding a tutoring service with her. Peggy attached a...
-
The patient tells you he is 175 centimeters tall. Convert to feet and inches and document in the EHR. Round to the nearest inch. 175cm anscribing prescriptions
-
Illini Company, Inc. Balance Sheet as of 12/31/20X0 Assets Current Assets: Cash $1,500,000 Accounts receivable, net 18,000 Inventory 50,000 Total current assets 1,568,000 Equipment 90,000 Goodwill...
-
Karim Depak received a Form 1099-B showing the following stock transactions and basis during 2012: None of the stock is qualified small business stock. Calculate Karim's net capital gain or loss...
-
Yolanda is a cash basis taxpayer with the following transactions during the year: Cash received from sales of products........................................................................$65,000...
-
Diane is a single taxpayer who qualifies for the earned income credit. Diane has two qualifying children who are 3 and 5 years old. During 2012, Diane's wages are $17,100 and she receives dividend...
-
Allister Company uses both debt capital and equity capital to fund new projects. The before-tax cost of debt capital is 12 percent. The cost of equity capital is 10 percent. Allister's effective tax...
-
Use an Internet search engine to identify three companies or agencies that use present worth analysis to make business decisions as evidenced in their annual reports.
-
Use the Internet to access ConocoPhillips's most recent annual report. a. What evidence do you find that ConocoPhillips continues to rely on present worth analysis in its corporate decision making?...
Study smarter with the SolutionInn App