Summarize the total sales by salesperson and by product

Assignment Help Business Management
Reference no: EM13778622

1. Use a two-dimensional array to solve the following problem: A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each type of product sold. Each slip contains the following:

a) The salesperson number

b) The product number

c) The total dollar value of that product sold that day

Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume that the information from all the slips for last month is available. Write an application that will read all this information for last month's sales and summarize the total sales by salesperson and by product. All totals should be stored in the two-dimensional array sales. After processing all the information for last month, display the results in tabular format, with each column representing a salesperson and each row representing a particular product. Cross-total each row to get the total sales of each product for last month.

Cross-total each column to get the total sales by salesperson for last month. Your output should include these cross-totals to the right of the totaled rows and to the bottom of the totaled columns.

Test your answer using:

{
{1, 4, 20},
{1, 5, 30},
{2, 5, 25},
{3, 3, 50},
{4, 2, 80},
{1, 4, 30},
{2, 3, 25},
{3, 4, 20},
{4, 3, 45},
{1, 1, 10},
}

Reference no: EM13778622

Questions Cloud

The purpose of environmental scanning : Identify and explain the different types of organizational structures. Which type of structure do you feel is most effective and why?
Individual choice and economic freedom : Discuss effectiveness, efficiency, individual choice and economic freedom, and equity issues of adopting or not adopting this strategy. Cite also any political acceptability or administrative feasibility issues.
Find out what kinds of change were taking place there : Choose any two countries other than the United States and do research to find out what kinds of change were taking place there.
What tools are necessary to collect the evidence : What tools are necessary to collect the evidence? What challenges exist regarding the collection of the evidence? Explain
Summarize the total sales by salesperson and by product : Write an application that will read all this information for last month's sales and summarize the total sales by salesperson and by product. All totals should be stored in the two-dimensional array sales.
Contemporary relevance of ancient codes : Our class's final essay assignment requires you to reflect on the contemporary relevance of ancient codes, documents, and artifacts that contributed to the evolution of our modern conception of human rights. Your essay should answer these question..
Write a four argumentative pages about gone girl movie : Write a 4 full argumentative pages about GONE GIRL movie. what argument is the movie making? How does the movie make the argument?
Create a marketing plan to launch : Create a marketing plan to launch a new product or re-launch a current product from. Use of genuine Harley parts for repairs as opposed to less expensive after-market parts.
Managing a diverse workforce issues : How could a manager learn more about managing a diverse workforce?

Reviews

Write a Review

Business Management Questions & Answers

  Towns and cities along iowa borders could make an exception

Towns and cities along Iowa borders could make an exception to the length requirements to allow trucks to use their city and town roads. Can Iowa's statute survive a constitutional challenge?

  A good or bad occurrence if unexpected findings

Why or why not would an organization choose to under go an evaluation process before or after training? Is it a good or bad occurrence if unexpected findings that may have unintended implications are found?

  Analysis for kenneth dailey of fmc green river

Kenneth Dailey of FMC Green River: Organizational change and development - Using the appropriate organizational analysis format, finalize your analysis for Kenneth Dailey of FMC Green River.

  Importance of company culture

Provide an impression of the culture of an organization or group to which you have belonged or for which you have worked and explain both the positive and negative aspects of the culture

  Using scheins three levels of organizational culture i need

using scheins three levels of organizational culture i need help with the first level.artifacts - artifacts are

  Visit the web site of the weather channel

Visit the Web site of The Weather Channel

  Discuss organizational interventions to recommend

Discuss organizational interventions to recommend. Take into consideration your previous diagnosis and the emotional state of your employees from your interview.

  Company mission vision and stakeholdersstrategic management

company mission vision and stakeholdersstrategic management starts with vision and mission. it consists of the analysis

  Essay on business processes

Write 500 word essay on business processes-Industry Analysis In this Case Study, you will research an airline company and give a brief overview of the company, identify the industry it is a part of, and complete a Five Forces Industry Analysis

  Leadership skills and development

Identify the strengths and weaknesses they demonstrated as leaders during the movie. You may wish to give each person a character or two to write up and research;

  Illustrate what would you do if manager is in industry

Suppose you're a middle manager in an industry with about a thousand employees. You're negotiating a contract with a potentially very large customer whose representative has hinted that you could almost certainly be assured

  Question related to corporations

What are the factors discussed in terms of individuals and relationships at the corporation and how do they shape your view of the individual and how to manage people

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