Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Corporate Sales Data Problem Write a C++ program that uses a structure to store the following data on a company division: Division Name (such as

Corporate Sales Data Problem

Write a C++ program that uses a structure to store the following data on a company division: Division Name (such as East, West, North, or South) First-Quarter Sales Second-Quarter Sales Third-Quarter Sales Fourth-Quarter Sales Total Annual Sales Average Quarterly Sales The program should use fours variables for this structure. Each variable should represent one of the following divisions: East, West, North, and South. The user should be asked for the four quarters' sales figures for each division. Each division's total and average should be calculated and stored in the appropriate member of each input structure. These figures should then be displayed on the screen. You should prevent the user from entering negative numbers. Use the following data from first to the fourth quarter for divisions as shown below:

East: 15000, 25000, 21000, 33000

West: 16000, 22000, 16000, 17000

North: 7500, 11300, 12100, 19100

South: 3300, 4500, 7700, 9900

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

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions