Chapter 8: Problem 39
Consider the following declarations: const int CAR_TYPES = 5; const int COLOR_TYPES = 6; double sales[CAR_TYPES][COLOR_TYPES]; a. How many components does the array sales have? b. What is the number of rows in the array sales? c. What is the number of columns in the array sales? d. To sum the sales by CAR_TYPES, what kind of processing is required? e. To sum the sales by COLOR_TYPES, what kind of processing is required?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.