Assignment on the two-dimensional array sales

Assignment Help Programming Languages
Reference no: EM13780926

1. 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 passesin 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 informationfrom all the slips for last month is available.Write an application that will read all this information forlast month's sales and summarize the total sales by salesperson and by product. All totals should bestored in the two-dimensional array sales. After processing all the information for last month, displaythe 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 shouldinclude these cross-totals to the right of the totaled rows and to the bottom of the totaled columns.

Test your answer using:

{
{1, 4, 20},
{1, 5, 30},
{2, 5, 25},
{3, 3, 50},
{4, 2, 80},
{1, 4, 30},
{2, 3, 25},
{3, 4, 20},
{4, 3, 45},
{1, 1, 10},
}

Reference no: EM13780926

Questions Cloud

Implementation-strategic controls and contingency plans : Resource: Implementation, Strategic Controls, and Contingency Plans assignment with facilitator feedback Complete a strategic plan for your organization of  1,000-1,500 words.
Direct investment and financial risk assessment : Identification and explanation of the key internal structures (at least 3) that will be designed to enhance the culture within your organization
Write a fact pattern about the ground : Write a fact pattern about the ground, asking the question, can the Husband or Wife obtain a divorce based upon these facts
Explain state law that apply storage of alcoholic beverages : Explain the Federal, state, and local laws that apply to purchase, storage, and consumption of alcoholic beverages when catering an event in your city of choice.
Assignment on the two-dimensional array 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 passesin a slip for each type of product sold. Each slip contains the follo..
Diversity-inequality and immigration in human services : Overview of Inequality. Present the history of inequality and racial injustice in our society. Discuss the current disparities in housing and home ownership, health, health insurance, social mobility, employment status, and politica..
Expectations for the psychology major : This course provided you an overview of the discipline of psychology, including expectations for the psychology major, career options for students completing a bachelor's degree in psychology, and career options for students who pursue a graduate ..
Product idea-business model : Using your product example from the previous Discussion Board post, begin your paper with the following:
Describe specific engineering and manufacturing process : Describe specific engineering and manufacturing process planned to be used in the development of lithium air battery. Potential defects and that cause deviations in the development process. How this process can be used to minimize the amount of waste..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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