Question: 9.3 Using C++ Student Instructions: 1. Implement code that contains variables of type pointer. 2. Implement your code; Description of the problems: 1. (Gaddis) Program
9.3
Using C++
Student Instructions: 1. Implement code that contains variables of type pointer. 2. Implement your code; Description of the problems: 1. (Gaddis) Program Challenges 19. Monthly Payments, page 145 Chap 2.
1. Define variables of type pointer pointing to the variables defined for the problem solution. 2. Implement a function for each of the values entered by the user, Loan Amount, Monthly Interest Rate, Number of Payments. 3. Implement the function for each of the calculations: Monthly Payment, Amount Paid Back, Interest Paid. 4. Implement a function that prints the results. 5. The input parameters of each of the functions must be variables of the pointer type. 6. Return the results of each function by reference.
* 19. Monthly Payments The monthly payment on a loan may be calculated by the following formula: Rate *(1 + Rate) Payment *L ((1 + Rate)N 1) Rate is the monthly interest rate, which is the annual interest rate divided by 12. (12% annual interest would be 1 percent monthly interest.) N is the number of payments, and er 3 Expressions and Interactivity L is the amount of the loan. Write a program that asks for these values and displays a report similar to Loan Amount: $ 10000.00 Monthly Interest Rate: 1% Number of Payments: 36 Monthly Payment: $ 332.14 Amount Paid Back: $ 11957.15 Interest Paid: $ 1957.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
