The tabular output has to include these cross-totals

Assignment Help Computer Engineering
Reference no: EM1330153

Using 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

Also: 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 particular 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. The tabular output should include these cross-totals to the right of the totaled rows and to the bottom of the totaled columns.

Reference no: EM1330153

Questions Cloud

Family first farm was founded in 2006 : Family First Farm was founded in 2006 by the Douglas family. Because it was a small family business, Oliver Douglas decided to keep things simple and operate as a sole proprietorship.
Specifying the copyright law : What is a "mash up" and is it allowed under present copyright laws?
Morgan-s re-design using the spider plant metaphor : How might Morgan's re-design using the spider plant metaphor relate to how decisions are made, sources and nature of conflict.
Explain orbitz internet site : Explain Orbitz Internet Site and Discuss the impact of legal and regulatory and or ethics issues
The tabular output has to include these cross-totals : Thus, each salesperson passes in between 0 and 5 sales slips per day. suppose that the information from all the slips for last month is available.
Is the subsiquent events cause the dollar to appreciate : Is the subsiquent events cause the dollar to appreciate or depreciate against the Euro.
Protecting intellectual property in film industry : How can a movie studio prevent plagiarism?
Economic risk of a nation by using a specific country : Explain what is meant by economic risk of a nation by using a specific country as an example.  Also how can economic risk in this country be anticipated?
Explain important information about e-marketing strategies : Explain Important information about E-Marketing Strategies and Explain a blurb about each of the following companies and their e-marketing strategies

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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