Exercise 2: The following formula calculates the periodic payment based on the principal P, the periodic interest rate R
-
answerhappygod
- Site Admin
- Posts: 899604
- 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!