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

  Problem about arrays

Initialize the array with the appropriate number of values.

  Relational database model

Why a database is called as relational database model?

  Implement a program using function for a defined task

Implement a program using function for a defined task. Initial data is read from a file and added from keyboard. Program has to output resulting and initial data.

  What is a personal video journal entry posted on the web

What is a personal video journal entry posted on the web?

  Importance of seasonal forecasting in regards

Find an article through the Hunt Library that discusses the importance of seasonal forecasting in regards to the passenger airline industry.

  Speculate on the role of the cio in a specific industry

q1. with a focus on enterprise hardware software services and human capital list and describe three advantages of green

  Differences between lans and wireless lans

Wireless networks have become a pervasive part of society today. Let's focus our discussion on Wi-Fi also known as the IEEE 802.11 standards group. The latest member of the 802.11 family is 802.11n. What are some immediately noticeable differe..

  Minimum and maximm levels

Using this data , calculate : Re-order Level  , minimum and maximm levels.

  Long-term average highway mileage

Larry wonders whether the data show that his true long-term average highway mileage is less than 51 mpg. What are his null and alternative hypotheses?

  The sales people at hyperactive media sales

The sales people at Hyperactive Media sales all use laptop computers so they can have easy access to important data on the road. The salespeople regularly take customer lists and other sensitive company information with them. Occasionally a laptop is..

  What would be the pros and cons of selecting in-house

What would be the pros and cons of selecting in-house development versus a packaged solution for the R/Way system?

  Record any error messages that the compiler produces

Introduce the following errors, one at a time, to the program from the programming project 1.1. Record any error messages that the compiler produces.

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