Write a program will have a structure that holds data

Assignment Help Programming Languages
Reference no: EM131660764

Assignment: Corporate Sales Data

This program will have a structure that holds data about each division of a corporation. This structure will have a string object that holds the division's name, 4 doubles that hold the sales totals for each quarter. The structure will also have two other doubles, one for the annual sales and the other will hold the average of the quarter sales. The program should use four variables (instances) of this structure. Each variable should represent one of the following corporate divisions: East, West, North, South. The user should be asked for the four quarters' sales figures for each division. Each division's total and average sales should be calculated and stored in the appropriate member of each structure variable. The output of the program will be all the figures in the structures. Validation: Do not accept negative numbers for any sales figures.

• Program must have the following functions

o void DisplayCorpInformation(const Division& east, const Division& west, const Division& north, const Division& south);
o void FindTotalAndAverageSales(Division& div);
o void GetDivisionSales(Division& div);

• The input should look like this screen shot.
• The output should look like this screen shot.

Attachment:- Screen-Shot.pdf

Reference no: EM131660764

Questions Cloud

Typical equity section of the firm balance sheet : A typical equity section of the firm's balance sheet consists of three sections which are common stock outstanding
Examine legal requirements for managing patient information : Examine legal requirements for managing patient information, health information documentation, the release of information, and electronic health records.
Describes for saudi arabian organizations : Analyzes the outcomes AlShathry describes for Saudi Arabian organizations and how productivity is impacted - Current sources are those published
Describe and discuss the performance of senior management : Describe and discuss the performance of senior management and other employees in your organisation
Write a program will have a structure that holds data : Write a program will have a structure that holds data about each division of a corporation. This structure will have a string object.
Discuss epidemiological data of population : Implementation of strategies of the CHN and three levels of prevention
Deriving annual cash flow streams : If cash, $50,000, is used to purchase an asset and other cash activities in the year net out to $20,000, what value would the cash stream for that year be?
What is the appropriate amount for harry putts : What is the appropriate amount for Harry Putts to report for these investments on the December 31, 2014, balance sheet
Discuss all the voting techniques : Voting Techniques. Algonquin Corp. has issued and has outstanding 100,000 shares of common stock. Four stockholders own 60,000 of these shares.

Reviews

Write a Review

Programming Languages Questions & Answers

  Assignment on the service-oriented architecture

Assignment  : The Service-Oriented Architecture

  Develop a simple program for inventory system

You have to develop a simple program for an inventory system. You can choose any type of business (ie: Medical supplies, bakery, grocery shop, florist etc.)

  Write grading program using parallel arrays

Write grading program Using Parallel Arrays to read 20 students' ID and 3 exam scores for each student - calculate each student's average.

  Write application which calculates factorials

Write the application which computes the factorials of 1 through 20. use type long. Display results in tabular format. What difficulty might prevent you from calculating factorial of 100?

  Data transmission

Data Transmission.  Please respond to the following: Compare the four items related to channel capacity: data rate, bandwidth, noise, and error rate.  Determine the most important and justify its significance over the remaining items.

  Briefly describe the properties of type system

Briefly describe the properties of type system of the corresponding programming language. Pay attention to each of the statements since there are a few obvious statements you can make

  How many school districts are there in your sample

How many school districts are there in your sample? How many schools are there in the district with the largest number of schools? How many schools are there in the district with the smallest number of schools?

  Develop a class rectangle with attributes length and width

Create a class Rectangle with attributes length and width, each of which defaults to 1. Provide methods that calculate the rectangle's perimeter and area.

  Determines which patients have a high systolic pressure

Application determines which patients have a high systolic pressure and provides a process to contact them for follow up consultation.

  Create a class to describe the product

create a class to describe the product that is being ordered. You will then modify your code to create an instance of this class and utilize it in the ordering process.

  Proc mean data=ex1height

Proc mean data=EX1height;throws what sort of error message

  Explain programming language is machine independent

Explain what does it mean to say that programming language is machine independent? What do you mean by operator precedence? Depending on operator precedence, what values could be related with expression 6 + 2 * 3?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd