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

  Display total amount owed in fixed-point notation

Enter your C++ instructions into a source file named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.

  Using a software program to create story books

submit a unit plan spanning Two to Four weeks. See this example of a unit plan, (or search the web for a unit plan example that best suits matches your needs). Technology should be integrated for assessment, instruction, and student engagement..

  Program-customer-s names phone numbers in alphabetical order

Load file into parallel arrays and display list of customers' names and phone numbers in alphabetical order.

  Program to do multiplications using divide-and-conquer

Recall that xy = (xy/2)2 if y is even. Use this to write down the function which calculates xy, suppose that y is a power of 2.

  Super call for constructor to allot value of attribute

We have given a super call, which does some work of constructor. Your code must complete constructor by allotting the value of g to gpa attribute.

  Describe create table command

Find the patients who have made an appointment with a doctor who does not treat them.

  Ruby on rials to design app

Use ruby on rials to design app. It has to have a database and at least 4 pages Style is free you can design it as the way that you like

  Discuss the business ethics to promote ethical behaviour

Discuss the business ethics (concept, common issues, ethical decision factors), actions to promote ethical behavior, social responsibility (concept/dimensions, consumerism), and the business legal environment (source of law, resolution of disputes..

  Matlab that will use the flipping of two-sided coins to sim

Write a program in matlab that will use the flipping of two-sided coins to simulate any event that has a probability of success(Ps) that ranges between 0 and 1. The simulation will most likely be approximate. It must be accurate to at least 0.01

  Discuss what is meant by low-level programming

Discuss what is meant by "low-level" programming. What are the advantages of assembly language over higher-level languages for this type of programming?

  Write a program that reads in a number from the user

Write a program that reads in a number from the user and then displays the Hailstone sequence for that number, followed by a line showing the number of steps taken to reach 1.

  Write a program that randomly fills an array of size fifty

Write a program that randomly fills an array of size 50 with integer values from 1 to 20 inclusively. You will need to create a global constant for the size of the array; this will be used for declaring and accessing the contents of the array.

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