Question: Write a program in C++ that uses a structure to store the following data on a company division. - Division Name (East, West, North or
Write a program in C++ 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
Get step-by-step solutions from verified subject matter experts
