subject

Enhance your program from exercise 20 by first telling the user the minimum monthly payment and then prompting theuser to enter the monthly payment. your last payment might be more than the remaining loan amount and interest on it. in this case, output the loan amount before the last payment and the actual amount of the last payment. also, output thetotal interest paid. reference: when you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodicpayments over a certain period of time. of course, the lending company will charge interest on the loan. every periodicpayment consists of the interest on the loan and the payment toward the principal amount. to be specific, suppose thatyou borrow 51000 at the interest rate of 7.2% per year and the payments are monthly. suppose that your monthlypayment is 525. now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12: 0.6%. the first month‘s interest on 51000 is 1000 x 0.006 = 6. because the payment is $25 and interest for the first monthis $6, the payment toward the principal amount is 25 — 6 = 19. this means after making the first payment, the loan amountis 1000 — 19 = 981. for the second payment, the interest is calculated on 5981. so the interest for the second month is 981x 0.006 = 5.886, that is, approximately 55.89. this implies that the payment toward the principal is 25 — 5.89: 19.11 and theremaining balance after the second payment is 981 — 19.11 = 961.89. this process is repeated until the loan is paid. write aprogram that accepts as input the loan amount, the interest rate per year, and the monthly payment. [enter the interestrate as a percentage. for example, if the interest rate is 7.2% per year, then enter 7.2) the program then outputs thenumber of months it would take to repay the loan. (note that if the monthly payment is less than the first month's interest, then after each payment, the loan amount will increase. in this case, the program must warn the borrower that themonthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, justbepunky
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
image
Computers and Technology, 23.06.2019 01:30, solikhalifeoy3j1r
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
image
Computers and Technology, 23.06.2019 02:00, HannahVance99
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
image
Computers and Technology, 23.06.2019 04:00, terrell31
Write a method that takes in an array of point2d objects, and then analyzes the dataset to find points that are close together. be sure to review the point2d api. in your method, if the distance between any pair of points is less than 10, display the distance and the (x, y)s of each point. for example, "the distance between (3,5) and (8,9) is 6.40312." the complete api for the point2d adt may be viewed at ~pf/sedgewick-wayne/algs4/documenta tion/point2d. html (links to an external site.)links to an external site.. try to write your program directly from the api - do not review the adt's source code.
Answers: 1
You know the right answer?
Enhance your program from exercise 20 by first telling the user the minimum monthly payment and then...

Questions in other subjects: