(Solved):Consider the following declarations: const int CAR_TYPES = 10; const int COLOR_TYPES = 5; double sales[CAR_TYPES][ COLOR_TYPES]; a. Write C++ code to ask the sales per CAR_TYPE per COLOR_TYPE f… View Answer…

 

Question

Consider the following declarations:

const int CAR_TYPES = 10;
const int COLOR_TYPES = 5;
double sales[CAR_TYPES][ COLOR_TYPES];

a. Write C++ code to ask the sales per CAR_TYPE per COLOR_TYPE from the user and store them in the sales array.

b. Write C++ code to sum the sales by CAR_TYPES and print a report on the screen.

c. Write C++ code to sum the sales

Scroll to top