Hark, where my blossomed pear-tree in the hedge While the chaffinch sings on the orchard boughĪnd the whitethroat builds, and all the swallows! Round the elm-tree bole are in tiny leaf, That the lowest boughs and the brushwood sheaf (In this case the program must warn the borrower that the monthly payment is too low and with this monthly payment the loan amount could not be repaid.) *****************************************************************************/ #include "stdafx.( Poem #65) Home Thoughts From Abroad Oh, to be in England (Not that if the monthly payment is less than the first month's interest, then after each payment, the loan amount will increase. The program then outputs the number of months it would take to repay the loan. (Enter the interest rate as a percentage). Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. This process is repeated until the loan is paid. This implies the payment towards the principal is $25-5.89= 19.11 and the remaining balance after that second payment is $961.89. So the interest for the second month is 981 x 0.006=5.886 which is approx. So the interest rate for the second payment, the interest is calculated on $981. This means after making the first payment, the loan amount is 1000-19=981. Because the payment is $25 and the interest for the first month is $6, the payment towards the principal amount is 25-6= 19. 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%. Suppose you borrow $1000 at the interest rate of 7.2% per year and the payments are monthly. (Reference: Ch5 Ex-20) When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. In this case, output the loan amount before the last payment and the actual amount of the last payment. Your last payment might be more than the remaining loan amount and interest on it. ***************************************************************************** Nathan Kondor INFO_1522_WW C++ Programming - Program Design Including Data Structures Chapter 5 - Exercise 21 Enhance your program from exercise 20 by first telling the user the minimum monthly payment and then prompting the user to enter in the monthly payment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |