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 program that prompt the user to enter five numbers

Write a program that prompt the user to enter five positive numbers and calculate the average. When a negative number is entered, program will be terminated.

  Make a python program that gets a number using keyboard

You need to make a Python program that gets a number using keyboard input. If the number is positive, the program should call countdown.

  Create a given artisan 3D pancake

How many cubic units of batter (to some given degree of accuracy) is required to create a given artisan 3D pancake defined by a given blueprint

  Write a program that fills two lists with input from the use

Write a program that fills two lists with input from the user. One list should be students' first names and the second list should be students' last names.

  Calculates the course average as the sum of the exams

CIS101 Calculates the Course Average as the sum of the exams divided by 4 and stores the result in a new variable named courseAverage.

  Write the function maxval which returns larger of integers

Write the function maxVal ( a , b ) which returns the larger of integers a and b. Write a script which tests maxVal interactively within a print statement.

  Eliminate duplicate by throwing an error

need to merge a series of such files into 1 file, eliminate duplicate by throwing an error and not merge files if duplicates exist

  Project title email spam filterabstractanalyze the emails

project title email spam filterabstractanalyze the emails and predict whether the mail is a spam or not a spam.to work

  How when you are typing a text message

You have all experienced how when you are typing a text message the application will provide potential words that complete what you are typing (and sometimes insist on completing them incorrectly).

  Write a function that works exactly like pythons random

Write a function random_cho ice that works exactly like Python's random. choice function: it takes a list as an argument and returns one of it's elements.

  Compare the users choice and the computers choice

Prompt user to select either Rock or Scissors. Instruct computer to randomly select either Paper or Scissors. Compare user's choice and the computer's choice

  Write a python function that accepts the number of feet

Write a python function that accepts the number of feet and head as input as returns the number of rabbits and number of chickens.

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