A+ Work





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