Answered step by step
Verified Expert Solution
Question
1 Approved Answer
When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose
When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is: Li R 1-(1+i)-mt You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is: 1- (1+i)-(mt-1)] L' = R i m where R is the periodic payment. (Note that if the payments are monthly, then 12.) Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the apropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat the program for different values
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started