Question: please help me Python Exercise 1 (100 pts) To illustrate the use of classes, write a program that implements two different types of mortgages: 1.

please help me

please help me Python Exercise 1 (100 pts) To illustrate the use

of classes, write a program that implements two different types of mortgages:

Python Exercise 1 (100 pts) To illustrate the use of classes, write a program that implements two different types of mortgages: 1. A fixed-rate mortgage: This is a conventional loan that is defined by the loan amount, the annual interest rate (APR), and the number of years. 2. A fixed-rate mortgage with points: This is a type of mortgage in which borrowers can get lower interest rates by paying "points" to the lender at the time they took the mortgage. Instead of reducing the amount of the loan, the "points" money goes to reduce the interest owed. In both types of mortgage, the monthly payment is given by the formula: where A is the monthly payment, P is the total amount of the loan, i is the monthly interest rate (i APR/12) and N is the total number of months for the loan. If we have a mortgage with points, the client makes a single payment at the beginning of the loan for a certain number of percentage points calculated off the total loan. For example, a $100,000 mortgage with 2.5 points would require the client to pay 2.5% of the total ($2,500) at the beginning. After that, the mortgage is exactly the same as a conventional fixed-point mortgage. Your program should do the following: 1. Create a general class for mortgages. This class should include the basic information about any general mortgage, a method to calculate the monthly payment, a method to apply those payments to the loan (thus reducing the amount of money owed), and a method to retrieve the total amount of money paid. 2. Create a subclass for objects of the type "mortgage. This class should inherit information and methods from the general mortgage class, but should also have its own way to calculate the total amount of money paid. 3. Ask the user for all the relevant data to compare a fixed mortgage with a points mortgage, both for the same total

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!