Chat with us, powered by LiveChat In this assignment you will be creating 4 classes Loan, Clie | Writedemy

In this assignment you will be creating 4 classes Loan, Clie

In this assignment you will be creating 4 classes Loan, Clie

In this assignment you will be creating 4 classes Loan, Client, Accountant, and Bank along with a single function called create banks from file.

1.1 Loan

The Loan class takes in 3 arguments principal, rate, and time each of which will be floats or ints. Each argument needs to become an instance variable named self.principal, self.rate, and self.time. You need to implement 3 methods.

1.1.1 calculate monthly payment 

The basic idea of the Loan class is that it can calculate some information regarding loans. calculate monthly payment calculates the amount one needs to pay per month to pay back the loan in the correct amount of time. The total amount borrowed money is the principal, the number of payments is time and the interest rate per month is rate. In order to calculate the total cost per month you need to use the equation 6. If you are interested or confused, you can see where I got the equation and a deeper explanation here P = principal (1) r = rate (2) t = time (3) A = cost per month (4) (5) A = P r(1 + r) t (1 + r) t − 1 (6)

1.1.2 calculate total owed 

calculate total owed needs to calculate the total amount of the loan which needs to be paid. This is the time multiplied by the cost per month.

1.1.3 calculate total interest 

calculate total interest needs to calculate the total amount of interest which will be paid. This is the total owed minus the principal

1.2 Client 

The Client class takes in 4 arguments name, total savings, total checking, and loan. name will be a string and both total savings and total checking will be floats or ints. loan is supposed to be an instantiated Loan object. You need to implement 5 methods.

1.2.1 total in checking 

Return total checking.

1.2.2 total in savings 

Return total savings

1.2.3 total borrowed

Return the amount of money borrowed. This can be found out through the Loan object passed in via loan.

1.2.4 total interest

Return the amount of interest owed. This can be found out through the Loan object passed in via loan.

1.2.5 total owed

Return total amount of money owed. This can be found out through the Loan object passed in via loan.

1.3 Accountant

The Accountant class takes in 1 argument, name (a string). You need to implement 5 methods.

1.3.1 add client

This method takes in a Client object and adds it to self.clients. It does not need to return anything

1.3.2 get client

T

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order