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

Connected

Exercise

FinancialCalculator

Let's extend the BasicCalculator class and create the FinancialCalculator.

To start, you'll create this child class with minimal functionality - the ability to calculate the monthly interest rate from the annual interest rate. Later, you will add more features to the FinancialCalculator!

numpy has been imported as np for you.

Instructions

100 XP
  • Create the class FinancialCalculator by inheriting from BasicCalculator.
  • Create an instance of the FinancialCalculator class as financial_calculator.
  • Use financial_calculator to compute the monthly interest rate given an annual interest rate of 6%, remembering to input the percentage as a decimal.