Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need c++ code for this assignment. Please use given code and add to that. Write a program that uses a structure to store the following
Need c++ code for this assignment. Please use given code and add to that. Write a program that uses a structure to store the following data on a company division: (name the structure Company) Division Name (such as East, West, North, or South) (string) //Make this member a string a call it dName. First-Quarter Sales //Make this meinber double and call itfirst?Sales Second-Quarter Sales//Make this member double and call it sndQSales Third-Quarter Sales /Make this member double and call it thirdQSales Fourth-Quarter Sales //Make this member double and call it fourthQSales Total Annual Sales//Make this member double and call it annualSales Average Quarterly Sales //Make this member double and call it avgQSales The program should keep a list of corporate sales data. It should ask the user how many divisions the corporate has. It should then dynamically allocate an array of Company structure. After the array has been dynamically allocated, the program should ask the user for: . Division name . First-Quarter Sales . Second-Quarter Sales . Third-Quarter Sales Fourth-Quarter Sales 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 in the scree
Need c++ code for this assignment. Please use given code and add to that.
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