Write a function the amount of loan at the start

Assignment Help Python Programming
Reference no: EM132446951 , Length: 1 Page

Assignment Question - Task: Loan

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: EM132446951

Questions Cloud

Define term deferred compensation : Research the U.S. Tax Code to determine how your 401(k) deferred compensation is taxed. Determine whether the treatment is reasonable.
Explain how the firms accounting information system : Based on the information you researched, assess the failure of the firm's accounting information system to prevent the related fraud / embezzlement.
Describe the price-earnings ratio : Identify and describe the information that is included in the stock trading reports for that stock.Describe the price-earnings ratio
How would the absence of the sarbanes-oxley act : Discuss the key components within the monthly bank reconciliation and financial statements that could be used to cover fraudulent activities
Write a function the amount of loan at the start : Assignment Question - Task: Loan. Write a function loan_amount_left that takes in four inputs. The function returns the amount of loan left at the end of year
Discuss types of accounting anomalies : Describe each anomaly and list the kind of information needed to identify each. Provide a minimum of 3 examples to support your statement and findings.
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?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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