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:

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

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
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..
|