Exercise 2: The following formula calculates the periodic payment based on the principal P, the periodic interest rate R
Posted: Mon Mar 21, 2022 4:42 pm
Exercise 2: The following formula calculates the periodic payment based on the principal P, the periodic interest rate R, and the number of periods N respectively. Payment = 1-(1+R)-N Write a complete CH program that reads P, R, and N from a text (xyz.txt) file as shown, compute the payment for each line and write the results back to another file called payments.txt as shown below: PR xyz.txt 15000 0.08 5 16500 0.09 4 14600 0.10 6 payments.txt P R N Payment 15000 0.08 5 16500 0.095 4 14600 0.10 6 ++ 40 wyz.txt file is attached on your Ims Assignment 5