Question: Write a program that uses a structure to store the following data on a company division. - Division Name (East, West, North or South) -

Write a program that uses a structure to store the following data on a company division.

- Division Name (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 called salesreport.txt.

Input validation

- Do not accept negative numbers for any sales figures.

- Standardize users Division Name input to East, West, North or South

Please also answer the following questions:

1. What members will your structure contain? What is the data type of each member?

2. How will data be organized in your output file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!