Write a program that uses a structure named


Write a program that uses a structure named CorpData 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

Include a constructor that allows the division name and four quarterly sales amounts to be specified at the time a CorpData variable is created.

The program should create four variables of this structure type, each representing one of the four corporate divisions: East, West, North and South. Each variable shold be passed in turn to a function that calculates and stores the total sales and average quarterly sales for that division.

Once this has been done for each division, each variable should be passed in turn to a function that displays the division name , total sales, and quarterly average sales.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that uses a structure named
Reference No:- TGS0110410

Expected delivery within 24 Hours