Use two-dimensional array in javascript to solve problem

Assignment Help Programming Languages
Reference no: EM1363176

Using javascript. 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 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. Your tabular output should include these cross-totals to the right of the totaled rows and to the bottom of the totaled columns.

Reference no: EM1363176

Questions Cloud

Describe the shape of the average total cost function : Describe the shape of the average total cost function and also label the minimum point on the curve.
Question related to business management scenario : Question related to Business Management Scenario - definition of "race" specified in the statutory language of Title VII includes the following racial categories
Solvency and liquidity problems : Choose a publicly held company. Look at the most recent Income Statement, Balance Sheet, and Statement of Cash Flows and decide if you will give this company a loan equal to 10 percent of their retained earnings.
Explain company profit not determined without information : In the short run the typical company increases its output but its total cost also rises. Hence, the effect on the company 's profit cannot be determined without more information.
Use two-dimensional array in javascript to solve problem : Using javascript. 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).
Developing a health promotion program or initiative : Imagine that you work with children with special needs and are tasked with developing a health promotion program/initiative there.
Explain and create a work breakdown structure : Explain and Create a Work Breakdown Structure (WBS) for building a two-story vinyl-sided home with 3 bedrooms and 2 bathrooms
Favorable or unfavorable variance : Sampson Apparel Incorporated incurred actual variable overhead expenses of $62,000 in the current year for the production of 10,000 units.
Implement a new performance management program : Prepare a memo to the Board describing what actions must be taken before the performance management program can be effectively implemented.

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