Write a function loan amount left

Assignment Help Programming Languages
Reference no: EM132446945

Assignment Question -

When you take a loan from a bank, they will charge an interest based on the amount of the loan. When you repay the loan yearly, the accrued interest based on the initial amount would be deducted from the repayment and the remainder would be used to repay the loan.

Year

Amount

Payment

Interest

Amount Left

1

$1000

$100

$60

$960

2

$960

$100

$57.6

$917.6

3

$917.6

$100

$55.06

$872.66

...

...

...

...

...

16

$68.96

$73.10

$4.14

$0

In this example, you took a loan of $1000 with interest rate of 6% per annum compounded yearly. You decide to repay $100 dollars per year. In the first year, the interest of $60 dollars would be deducted from your repayment. The remaining $40 would be deducted from his loan and the current amount you must pay back is $960. The calculations for the subsequent years are shown on the table above.

Write a function loan_amount_left(amount, rate, payment, year) that takes in four inputs: the amount of loan at the start, the annual interest rate, the yearly payment, and the number of years. We assume that the amount is compounded yearly, at the end of the year, after interest is added. Additionally, we assume that the payment is made at the end of the year. The function returns the amount of loan left at the end of the given year.

Reference no: EM132446945

Questions Cloud

What are the consequences of the practices on the firm : When you learn of your coworker's actions, what is your response? What are the consequences of these practices on your firm?
What were the repercussions of the unethical actions : What were the repercussions of the unethical actions? What would have been the ethical response? financial investigators that crossed the line of ethics
Evaluate trends in the performance of P Jason Corporation : As the loan officer, what else would you do to gain a better understanding of Paul Jason's, and the Corporation's financial picture and why?
How would you improve internal controls of companies : The auditor identified a material misstatement in the financial statements that was not detected by management of the company.
Write a function loan amount left : Write a function loan_amount_left(amount, rate, payment, year) that takes in four inputs: the amount of loan at the start, the annual interest rate
Why service companies are more sensitive to labor : Examine the main reasons why service companies are more sensitive to labor and price variances, as compared to material price variances
Discuss variable and absorption costing : Select one of these costing methods and explore the various arguments. Determine whether you are "for" or "against" this selected method
What is meant by the term Sustainable Development : What is meant by the term "Sustainable Development"? Define the term "Business Responsibility" or "Corporate Social Responsibility"
Write up the fraud examination analysis : Why was the $36,000.00 check deposited into AIM, and why were Larsen Convenience Store disbursements made using AIM checks?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd