Question: Program written in C Problem 3. Bank Loan (25 points) Suppose, you want to apply for a bank loan. You would like to pay off
Program written in C
Problem 3. Bank Loan (25 points) Suppose, you want to apply for a bank loan. You would like to pay off the loan with interest in several years. But, you are not sure how much money to borrow and for how long. Therefore, you want to plan ahead and calculate the total pay off amount using the loan amount, loan period and interest rate as inputs. Write a code that will continuously ask for the loan amount (in dollars), loan period (in years) and interest rate (in percentage) as user input and print out the total pay off amount. After each calculation, it will ask user whether s/he wants to calculate again. If the user types Y, it will ask for input again. Otherwise, it will abort the program. Total pay off amount is calculated using the following formula where, P Loan amount r = Interest rate (0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
