Question: My instructor wants me to write a python program using classes that tracks information about a loan.The program should initially ask for the amount of
My instructor wants me to write a python program using classes that tracks information about a loan.The program should initially ask for the amount of the loan, then repeatedly present the user with two choices, one to allow the user to make a payment and one to compute interest.If the user chooses to make a payment, the program should ask for the amount of the payment, then deduct that amount from the current balance of the loan and display a message showing the new balance.If the user chooses to compute interest, the program should add 5/12% of the current balance to the current balance and display a message displaying the new balance.The program should continue prompting the user until they enter "quit".
As specified, you must use a class to solve this problem.My instructor suggests me to create a class with a data member to maintain the current balance along with set and get functions for the current balance.My instructor also suggests me to create function to handle payments and a function to handle computing interest as part of the class.
Good programming practices dictate that you should have all your user prompts, program control, and input/output in the main and make calls to the class member function to perform the operations.This also means no input/output in the class.
This program is for Python and I've been struggling in this class, any help will be appreciated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
