Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the program from the template to prints the contents of a 2-D array which contains company's sales data. The company has three divisions. The

image text in transcribedimage text in transcribedimage text in transcribed

Complete the program from the template to prints the contents of a 2-D array which contains company's sales data. The company has three divisions. The program uses a 2-D array of three rows and four columns. Each column represents one quarter of the year. Each row represents the sales data of one division. The program consists of a main function and another function for displaying a 2-D array passed in through arguments. The program has defined a global constant to represent the number 4 as the four quarters of an year. Use this constant identifier wherever the number 4 is required as the four quarters of an year. Write the prototype for the function named printSalesData above the main function. The function receives a 2-D array as the first argument and the number of divisions as the second argument. It returns void. The main function has a 2-D array defined and initialized. It then reads the data from user to fill the array. You need to supply the data in the input area. Complete the call statement that calls printSalesData function with the appropriate arguments to print the report. Below the main function, write the definition of printSalseData. Test The Program In Develop Mode, copy the following three lines to the box below the line that says "Enter program input (optional)" and then press the "Run program" button. Here is the expected output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions