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

  Write down a public static method named chunk25

Write down a public static method named chunk25 that takes a double and returns an integer that represents the number of chunks of 25 in that number. A chunk of 25 is 25, or any part thereof

  The acme corporation is looking to rapidly advance

This solution provides the learner with an understanding of how best to accomplish the task. This solution is comprised of over 2000 words of text with 4 references.

  How to store ten floating-point values into vector

How to store ten floating-point values into vector. Write down a program that declares a vector of ten floating-point values

  How to utilize data mining tools and techniques

How to utilize data mining tools and techniques

  Difference between fault tolerance and disaster recovery

How does the network administrator decide that backup method to implement?

  Write program that computes the cost of a long distance call

Write program that computes the cost of a long distance call

  Illustrate precedence graph

Illustrate precedence graph

  Create an application for a furniture company

Write down an application for a furniture company; the program determinds the price of a table, Ask the user to choose 1 of pine, 2 of oak, or 3 of mahogany.

  Generate a work breakdown structure code

Generate a Work Breakdown Structure Code

  Stack pointer and program counter

The content of top of a memory stack is 5320. The content of stack pointer SP is 3560. A two-word call subroutine instruction is situated in the memory at address 1120 followed by the address field of 6720 at location 1121.

  Illustrate general network design

Illustrate general network design

  Listing the values that have been inserted

Write down a Java program that loads 12 random integers with the values between 1 and 100 into a tree. Apart from building the tree.

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