1. Learn
  2. /
  3. Projects
  4. /
  5. Case Study: Building Software in Python

Connected

Exercise

Create the mortgage calculator class

You started with a BasicCalculator that performed basic arithmetic.

You then created a FinancialCalculator which inherited from this BasicCalculator. You extended this class by adding a method, monthly_interest(), that calculates the monthly interest given the annual interest rate.

Now it's time to create the MortgageCalculator class!

Instructions

100 XP
  • Instantiate the parent methods and attributes without invoking the parent by name.
  • Initialize self.loan_amount using the appropriate parameter.
  • Use an inherited method to initialize self.monthly_interest_rate.