Question: C++ must be used You must use a 2-dimensional array for this program. given that the XYZ company has 3 divisions and tracks quarterly sales,
C++ must be used
You must use a 2-dimensional array for this program.
given that the XYZ company has 3 divisions and tracks quarterly sales, write a program to prompt the user to input sales for each division for each quarter. Provide a grand total for all sales and a total for each division.
Use the following named constants and variables;
const int NUM_DIVS = 3;
const int NUM_QTRS = 4;
double sales[NUM_DIVS][NUM_QTRS];
double divSales[NUM_DIVS];
double totalSales;
Suggested algorithm:
For each divisionFor each quarter
get input for sales
accumulate division sales
accumulate total sales
Display division sales AND total sales in a user-friendly format
Below is a sample.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
