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

  How many legal combinations are there for memory reads

How many legal combinations are there for memory reads, and how many pins are needed to express them? Give two answers and make a case for each one.

  Which alternative would now be the most profitable

Using the Aspiration level criterion, if the profit level is set to be at least $300,000 and the loss level is set to be no more than $150,000 which alternative(s) must be eliminated?

  Discuss the benefits of traditional linux file permissions

Discuss the benefits of the traditional Linux file permissions scheme. How might it be superior to permission methodologies employed in other operating systems and what are the differences in overall approach to permissions, privilege, and securit..

  Forced decryption ruled unconstitutional

Analyze the decision by the 11th U.S. Circuit of Appeals to determine whether you believe the decision rendered was correct or incorrect based on the evidence suspected by the government.

  Business rules that are reflected in the erd

Write the business rules that are reflected in the ERD shown below. (Keep in mind that the ERD reflects some simplifications. For example, this ERD states that each book is only written by one author, but in reality, there are many books written by m..

  Problem regarding the pancake sort

The purpose of this lab is to emphasis the operation of a stack. You will implement a "pancake sort", aptly named because you can envision the values that you are trying to sort as a stack of pancakes that you want to arrange to have the largest ..

  Various ways of representing a function

What are the various ways of representing a function? What methods can you use to determine whether a relation is a function?

  Determine which rows in each data frame

Determine which rows in each data frame did not find a match in the other

  The program needs to read the number of rows and columns

The program needs to read the number of rows and columns from the user as command line arguments. You do need to check if the user supplied a number before you convert the string to a number. Continue to prompt for correct values, if the number..

  How it would be used as part of a problem solution

How it would be used as part of a problem solution.

  Testing is so essential to the development of a new system

Discuss why testing is so essential to the development of a new system; list the different types of testing that can be completed and why each one is critical. Can testing be overlooked to speed up the development effort?

  Which scenario is one that shows a positive attitude

List three tasks commonly performed during preventive maintenance. Using good grammar (complete sentences), describe a drawback to using an infrared wireless keyboard. Now, describe a benefit. Using good grammar, describe two benefits of using a laye..

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