Question: Modify the previous struct assignment so the data is read from a file rather than being typed in by the user. After the data is
Modify the previous struct assignment so the data is read from a file rather than being typed in by the user. After the data is read in all four divisions should be displayed.
Along with your code and screen shots, please turn in your data file. C
Beginner
Corporate Sales Data
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
