In this exercise, you will modify the car payment program from Lab 9-2. If necessary, create a

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: