Question: In this exercise, you will modify the program from Lab 9-2 in Chapter 9. If necessary, create a new project named ModifyThis13 Project, and save
In this exercise, you will modify the program from Lab 9-2 in Chapter 9. If necessary, create a new project named ModifyThis13 Project, and save it in the Cpp8\Chap10 folder. Copy the instructions from the Lab9-2.cpp file (which is contained in either the Cpp8\Chap09\Lab9-2 Project folder or the Cpp8\Chap09 folder) into a source file named ModifyThis13.cpp. (Alternatively, you can enter the instructions from Figure 9-34 into the ModifyThis13.cpp file.) Change the filename in the first comment to ModifyThis13.cpp. Change the getPayment function to a void function. Test the program appropriately.

1 //Lab9-2. cpp - di splays two monthly car payments 2 //Created/revised by on 4 #include 5 #include 6 #include 7 using namespace std; 8 9 //function prototype 10 double getPayment (int, double, int);- the names of the formal parameters are not required 11 12 int main() 13 { int carPrice = 0; int rebate - 0; double credi tRate double dealerRate = 0.0; int term = 0; double credi tPayment double dealerPayment = 0.0; 14 15 16 = 0.0; 17 18 19 0.0; %3D 20 %3D 21 cout > rebate; cout < < "Credit union rate: "; cin >> credi tRate; cout < < "Dealer rate: ": cin dealerRate; cout
Step by Step Solution
3.38 Rating (167 Votes )
There are 3 Steps involved in it
ModifyThis13cpp displays two monthly car payments Createdrevised by on include include include using ... View full answer
Get step-by-step solutions from verified subject matter experts
