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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!