Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed
image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions