CS 10 Python Programming Homework 5 OOP – Classes Write a program to calculate and display the loan for buying a car. 1. Create a class call Loan. Data fields in the Loan class include: 1 Annual Interest Rate (Float) 2. Number of years of loan (Float) 3. Loan Amount (Float) 4. Borrower’s Name (string) 2. Create the initializer or constructor for the class with the above data fields. Make the data fields private. 3. Create accessors (getter) for all the data fields. 4. Create mutators (setters) for all the data fields. 5. Create a class method ‐ get Monthly Payment where
Get Free Quote!
333 Experts Online