Display the results in tabular format

Assignment Help Basic Computer Science
Reference no: EM131229450

(Total Sales) 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.

Reference no: EM131229450

Questions Cloud

Briefly describe the issue you are investigating : Reflect on your practice and identify a significant nursing clinical issue that you would like to search for evidence in online sources. This issue will be the basis for the Research Database Assignment that you will submit in Week 3. Formulate se..
Calculates the product of a series of integers : (Variable-Length Argument List) Write an application that calculates the product of a series of integers that are passed to method product using a variable-length argument list. Test your method with several calls, each with a different number of ..
Discuss role of the interest rate and the cost of financing : Discuss the role of the interest rate and the cost of financing on your purchase decision. Interest rates are derived from the supply and demand for money and the actions of the Federal Reserve System. Explain the influence of environmental factors s..
Explain the difference between nominal and ordinal data : Explain the difference between nominal and ordinal data. Explain how nominal and ordinal data relate to a rating scale. List at least 2 quantitative attributes of snack food that the scientists might want to measure.
Display the results in tabular format : (Total Sales) 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 con..
Define qualitative and quantitative research designs : The research design flows from the research question and outlines the plan for the study that will answer the research question. The design identifies the major components of the study. It is important to remember that there is no one best design ..
Which of the options would you recommend why : Which of the options would you recommend? Why? Assume you are Joanne Poe. Prepare a list of all the options available to Foley, and give the advantages and disadvantages of each.
Opening a business in america : What are the basics in opening a business in America?
Determine whether each of the following is true or false : An individual array element that's passed to a method and modified in that method will contain the modified value when the called method completes execution.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is data integrity and in what way it is implemented

What is data integrity and in what way it is implemented in DBMS MS Access

  What are the various types of wireless security

What are the various types of wireless security. which method is the best and why?

  Effectiveness of different ways of mitigating

Describe one of the security threats that might be encountered when using cloud-based resources and then compare and contrast the effectiveness of different ways of mitigating this threat. Have you heard of any threats similar to this really happe..

  Create a presentation to outline case study requirements

Create a presentation to outline your proposal to meet the case study requirements. Identify the purpose and audience (the Director) for your presentation.

  Describe two sampling methods to select independent groups

Describe two sampling methods to select independent groups

  Describe ease of finding information on internet

Explain main elements of assignment in the substantive way. Describe the ease of finding information on the Internet.

  Create the class diagram and write the code

Create the class diagram and write the code that defines the class and implements the mutator methods.

  Development of science and technology

How did the Mayan religion influence their development of science and technology? How did those advances and beliefs lead to the growth of Mayan influence? What do you think led to their eventual decline?

  What is a plausible explanation of what may have happened

Prepare a short research paper of approximately 1300-1500 words, double-spaced, exclusive of cover, title page, and table of contents, endnotes and bibliography. Your paper must use APA formatting with the exception that tables and figures can be ins..

  Examples of changes in ceteris paribus conditions

Take a few minutes to think of specific examples of changes in ceteris paribus conditions also known as "determinants of demand". Write down one example for each of the five determinants of demand. For example for "taste and preferences" you might..

  Designing a game system

Suppose that you are designing a game system that responds to players' pressing buttons and toggling joysticks. The prototype system is failing to react in time to these input events.

  Latest trend of web technologies

Research the latest trend of Web technologies and identify one of the two of them. Introduce the technology(ies) you identify to your classmates

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