Write down a program which uses a structure named CorpData in order to store the following information about a company division:
Division name (such as East, West, North or South)
First Quarterly Sales
Second Quarterly Sales
Third Quarterly Sales
Fourth Quarterly Sales
Total Annual Sales
Average Quarterly Sales
Involve a constructor that enables the division name and four quarterly sales amounts to be specified at the time a CorpData variable is generated. The program must generate four variables of this structure type, each representing one of the four corporate divisions: East, West, North and South. Each variable must be passed in turn to the function which determines and stores the total sales and average quarterly sales for that division.
Once this has been done for each division, each variable must be passed in turn to the function which shows the division name, total sales, and quarterly average sales.