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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started