One program will use a structure to store the following


Write 2 programs:

One program will use a structure to store the following data on a company division:

Division Name (such as East, West, North, or South)

Quarter (1, 2, 3, or 4)

Quarterly Sales

The user should be asked for the four quarters' sales figures for the East, West, North, and South divisions. The data for each quarter for each division should be written to a file.

The second program will read the data written by the first program. The program should calculate and display the following figures:

Total corporate sales for each quarter

Total yearly sales for each division

Total yearly corporate sales

Average quarterly sales for the divisions

The highest and lowest quarters for the corporation

Input Validation: Do not accept negative numbers for any sales figures.

Solution Preview :

Prepared by a verified Expert
Programming Languages: One program will use a structure to store the following
Reference No:- TGS01713033

Now Priced at $40 (50% Discount)

Recommended (91%)

Rated (4.3/5)