Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions