Question: Using C programming language. Write a program to calculate the maturity value of a short-term loan at 30,60 and 90 days. The program should read
Using C programming language.
Write a program to calculate the maturity value of a short-term loan at 30,60 and 90 days. The program should read in two values: p, the amount of the principal value of the loan in Euro; and the percentage annual interest rate, APR. The maturity value v is given by v=p(1+((APR/100)n)/365) where n is the number of days. The program should print the maturity value in Euro for 30,60 and 90 days. Check to make sure that the interest rate, APR, is valid (e.g. not negative) and print an error message as shown in the examples
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
