Write a program that uses a structure to store the following data on a companydivision:Division Name (such as East, West, North, or South)First-Quarter SalesSecond-Quarter SalesThird-Quarter SalesFourth-Quarter SalesTotal Annual SalesAverage Quarterly SalesThe program should use four variables of this structure. Each variable should represent one of the following corporate divisions: East, West, North, and South. Theuser should be asked for the four quarters’ sales figures for each division. Eachdivision’s total and average sales should be calculated and stored in the appropriatemember of each structure variable. These figures should then be displayed on thescreen.Input Validation: Do not accept negative numbers for any sales figures
Write a program that uses a structure to store the following data on a company
division:
Division Name (such as East, West, North, or South)
First-Quarter Sales
Second-Quarter Sales
Third-Quarter Sales
Fourth-Quarter Sales
Total Annual Sales
Average Quarterly Sales
The program should use four variables of this structure. Each variable should represent one of the following corporate divisions: East, West, North, and South. The
user should be asked for the four quarters’ sales figures for each division. Each
division’s total and average sales should be calculated and stored in the appropriate
member of each structure variable. These figures should then be displayed on the
screen.
Input Validation: Do not accept negative numbers for any sales figures
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images