The interest rate per period

Assignment Help Python Programming
Reference no: EM13165799

This program will help you figure out how much you will need to pay per month, assuming the loan is a standard one.

Three quantities define how much a borrower has to pay per month:

  • PV, the amount borrowed (this is called the "present value"). If you borrowed $200,000.00, then PV is $200,000.00.
  • r, the interest rate per period. For example, if your loan's interest is 6.5% per year, and you are paying monthly, this would be 6.5%/12. If you are paying every two weeks, r would be 6.5%/26, because there are 26 two-week periods in a year.
  • n, the number of periods. If you have a 5 year loan with monthly payments, then n = 5 × 12 = 60. If you pay biweekly, then n = 5 × 26 = 130.

We are interested in two values: the monthly payment P, and how much principle RP remains each month.

The formula for the monthly payment, which does not change throughout the repaying of the loan is:

P=\frac{r\times PV}{1-(1+r)^{-n}}

The amount of principle that is left to be repaid after m months is:

RP=\frac{PV\times (1-(1+_r)^{m-n})}{1-(1+r)^{-n}}

Assume the loan is to be repaid in monthly payments. The amount borrowed is $5,000.00. The annual interest rate is 6.5%. The period of the loan is 1 year. Write a program thatcomputes and prints the month, payment, and remaining principle for each payment.
Input. This program takes no input.
Output. Your program's output should look exactly like this:

Payment schedule for a loan of $5000.00 at 6.5% interest, repaid over 1 year:
month payment remaining
   1   431.48   4595.60
   2   431.48   4189.01
   3   431.48   3780.22
   4   431.48   3369.21
   5   431.48   2955.98
   6   431.48   2540.51
   7   431.48   2122.79
   8   431.48   1702.81
   9   431.48   1280.55
  10   431.48    856.00
  11   431.48    429.16
  12   431.48      0.00

Reference no: EM13165799

Questions Cloud

We would like to implement the lexical order : We would like to implement the lexical order for lists. For simplicity, we only consider lists of numbers, where , >= have their usual meaning.
Write a program using for loops t : Write a program using for loops to produce the following output. Please read carefully the entire specification!
Gradesaverage, which prompts user : Write a program called GradesAverage, which prompts user for the number of students, reads it from the keyboard, and saves it in an int variable called numStudents. It then prompts user for the grades of each of the students and saves them in an i..
Consider an array of integers : Consider an array of integers as below: int[] a = {5, 2, -4, 3, 0, -5, 7, 11, 6, 13} Complete the method named count(int[] a) in the class Count. The method should return the number of positive numbers in the array
The interest rate per period : The interest rate per period. For example, if your loan's interest is 6.5% per year, and you are paying monthly, this would be 6.5%/12. If you are paying every two weeks, r would be 6.5%/26, because there are 26 two-week periods in a year.
. label the rows that make good power ciphers and explain : a) Make a power table for numbers mod 11. Indicate how the table shows Fermat's theorem, label the primitive roots mod 11. Explain how you can tell they are primitive roots. Label the rows that make good power ciphers and explain
Coinflip to prompt for and input a number : Write a program and name it CoinFlip to prompt for and input a number of times to flip a coin, then to output the number of "heads" and the number of "tails" that were flipped.
Write in c++ another overloaded operator : Write in C++ another overloaded operator to go in the program that has Treasury. Overload the forward slash /  so that in the main program, you can declare sale to be of type Treasury, and commission to be of type Treasury, and commispctage to be of ..
Write a c++ program that prompts the user for a double : Write a C++ program that prompts the user for a double that should be between 0 and 100. If the value entered is outside of the interval the program will print an error message. The program should continue to repeat until the user enters an appropria..

Reviews

Write a Review

 

Python Programming Questions & Answers

  Project will be a simple, working program

This programming project will be a simple, working program, using Python language, which utilizes a good design process and includes:Sequential, selection, and repetitive programming statements as well as,At least one function call.

  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.

  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.

  Data file is a comma separated

The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.

  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.

  Define a function to calculate the values

Be sure to define a function to calculate the values and print the table displaying the interest rate in the first column, the monthly payment in the second column, and the total payment in the third column. Your program should not allow the user to ..

  Define three types of programming errors

Define three types of programming errors and explain with examples

  Let ll be a list of integers

Let LL be a list of integers. Use list comprehension to produce teh following lists. Each one should just take onel line. Anser questions as two comments.

  Write a function trans(m) which returns the transpose

Write a function trans(M) which returns the transpose of an n-by-n matrix M. The matrix M is represented by a list of n lists, each of length n. Transposing M means that each M[i][j] is swapped (once!) with M[j][i].

  Code for the haunted house game

Improve the game by adding more features, for example you can examine more items, more props etc. You may implement this using more lists regarding items and props, remember, you should check if the object is being carried or in the location of th..

  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.

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

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