Question: In this exercise, you will modify the car payment program from Lab 9-2. If necessary, create a new project named Intermediate19 Project, and save it
In this exercise, you will modify the car payment program from Lab 9-2. If necessary, create a new project named Intermediate19 Project, and save it in the Cpp8\Chap09 folder. Copy the instructions from the Lab9-2.cpp file into a source file named Intermediate19.cpp. (Alternatively, you can enter the instructions from Figure 9-34 into the Intermediate19.cpp file.) Change the filename in the first comment. Make the modifications listed in Figure 9-39. Test the program appropriately.
Figure 9-39
1. Before calculating a monthly payment, verify that the denominator in the periodic payment formula is not the number 0. If it is 0, the function should return the number –1 (the negative number 1).
2. In addition to displaying the monthly payments, the program should also display the following two amounts:
a. The total amount the user will pay for the car if the loan is financed through the credit union.
b. The total amount the user will pay for the car if the loan is financed through the car dealer.
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
Intermediate19cpp displays two monthly car payments and the total paid if financing through the cred... View full answer
Get step-by-step solutions from verified subject matter experts
