Question: Instructions: You are to write a program that calculates the compound interest on a loan. The formula is provided below. 7 P principal amount( the

Instructions: You are to write a program that calculates the compound interest on a loan. The formula is provided below. 7 P principal amount( the initial amount you borrow) annual rate of interest (as a decimal) = t-number of years the amount is borrowed for A- amount of money paid back after n years, including interest n- number of times the interest is compounded per year You should print out all of the input variables, as well as the calculated result. Make sure to print the data with no formatting first, then with fixed formatting, then with fixed formatting with two decimal places, and finally print it with standard notation (scientific) with four decimal places. P 1500, r-4.3/100-0.043, n-4,t-6 First Run: Second Time: P-2500, r-3.0/100 0.03, n-12,t-10 Third Time: You pick your own value:s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
