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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:00
In cell b18, enter a formula to calculate the amount budgeted for meals. this amount is based on the daily meal allowance and the total travel days (# of nights+1).
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. â–ş print out all positive integers from 1 to 100, inclusive and in order. â–ş print messages to standard output, matching the sample output below. â–ş in the output, state whether the each integer is 'odd' or 'even' in the output. â–ş if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. â–ş if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. â–ş design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
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
question
Mathematics, 02.06.2020 03:59
question
English, 02.06.2020 03:59
question
English, 02.06.2020 03:59
question
Physics, 02.06.2020 03:59