Follow the instructions for starting C++ and viewing the ModifyThis18.cpp file, which is contained in either the

Question:

Follow the instructions for starting C++ and viewing the ModifyThis18.cpp file, which is contained in either the Cpp8\Chap12\ModifyThis18 Project folder or the Cpp8\Chap12 folder. (Depending on your C++ development tool, you may need to open the project/ solution file first.) The file contains the code shown earlier in Figure 12-8. The first column in the array contains the sales amounts for paperback books sold in each of the three stores; the second column contains the sales amounts for hardcover books. Jenko Booksellers has opened another store. The store’s sales of paperback and hardcover books are $1650.85 and $1246.85, respectively. Add the new sales information to the array, and then modify the program appropriately. Save and then run the program. 


1 //Jenko Booksellers.cpp - displays the total sales 2 //Created/revised by  on  3 4 #include  5 #include  6 using namespace std; 8 int main() 9 { double sales [3] [2] 11 10 {{3567.85, 2589.99},- {3239.67, 2785.55}, {1530.50, 1445.80}};- //accumulator array declaration 12 13 double total =

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

Step by Step Answer:

Question Posted: