- Exercise 2 The Following Formula Calculates The Periodic Payment Based On The Principal P The Periodic Interest Rate R 1 (32.13 KiB) Viewed 48 times
Exercise 2: The following formula calculates the periodic payment based on the principal P, the periodic interest rate R
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Exercise 2: The following formula calculates the periodic payment based on the principal P, the periodic interest rate R
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