Question about Computers & Internet

Open Question

Use a two dimentional array to slove the following prblm. A company has four salespeople (w/ salesperson number 1 to 4) Who sell five different products (w/ product number 1 to 5) Once a day each salesperson passes in a slip for each different type of product sold each slip contains: 1. The salesperson number 2. The product number 3.The total dollar value of that product sold that day. Thus each sales person passes in 0 to 5 sales slips per day. Assume that the information from all of slips for last month is available. While the program that will read all this information for last month sales and summarize the total sales by salesperson by product. All totals should be stored in the two dimensional array sales. After processing all the information for last month, point the result tabular format w/ each of the columns representing a particular salesperson & each of the rows 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 total sales by salesperson for last month Your neat tabular printout should include these cross total to the right of the totaled rows & to the bottom of the total columns.

Posted by on

  • 1 more comment 
  • prcat87 Apr 12, 2009





    I have a similar problem to code in C++.
    Can anybody help?
    prcat87












    Create a two-dimensional array to solve the following problem:
    A
    company has four salespeople who sell five different products. Once a
    day, each salesperson passes in a slip for each different type of
    product sold. The slip indicates the salesperson number (1-4) the
    product number (1-5) and the total value of that product sold for the
    day. Each sales person will turn in up to 5 sales slips per day.
    Create an array to hold the salesperson's name: 1- Joe, 2 - James, 3 - Jeff, 4 - Jake
    Create an array to hold the product information: 1 - Tubes, 2 - Tires, 3 - Sproket, 4 - Peg, 5 - Caliper
    Write
    a program that will take in the information for last month's sales and
    summarize the totals by salesperson, by product. All totals should be
    stored in a two-dimensional array entitled sales. After processing all
    the information (input), print the results in a tabular format with
    each of the columns representing a particular salesperson and each row
    representing a particular product. Cross total each row and column.
    Example:
    Joe James Jeff Jake total
    Tubes xx xx xx xx xx
    Tires xx xx xx xx xx
    Sproket xx xx xx xx xx
    Peg xx xx xx xx xx
    Caliper xx xx xx xx xx
    --------------------------------------------------------------------------
    total xx xx xx xx xx
    use the following information:
    sales person product amount
    1 1 250.00
    2 1 125.00
    3 1 095.00
    4 1 065.00
    1 2 080.00
    2 2 525.00
    3 2 125.00
    4 2 365.00
    1 3 050.00
    2 3 755.00
    3 3 690.00
    4 3 650.00
    1 4 210.00
    2 4 163.25
    3 4 012.00
    4 4 652.50
    1 5 195.35
    2 5 475.82
    3 5 237.50
    4 5 632.25



  • Anonymous Apr 30, 2009

    using java

  • Kuldeep Kumar Dubey
    Kuldeep Kumar Dubey May 11, 2010

    Hi,

    In which language/technology do you want this?

    Thanks.


×

3 Suggested Answers

  • 10406 Answers

SOURCE: Write a program to implement a survey that prompts

Need help doing your homework?

Here's a solution, written in BASIC:

10 PRINT, "Hello World"
20 EXIT

Posted on May 14, 2009

  • 59 Answers

SOURCE: Write a program that will

the only possible solution that i can think of is Flash since u want to run it on every OS.

Posted on Jul 07, 2009

  • 10406 Answers

SOURCE: Simulate the Shortest Job First CPU scheduling algorithm

Nice try! Find an upper-class student to give you one-on-one tutoring for your homework.

Posted on Dec 02, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

My nokia e5 has problem such system error, after used wifi to surf internet.once it happen, phone will be hanged. Do i need format this phone?.


hi jaboo_my ! im royal453 ... if u ev creat a backup file then run ur backup restore and slove ur prblm simple and best bcoz i ev had same prblm yaster day so i run restore backup file and slove it ....

Oct 29, 2010 | Cell Phones

1 Answer

How to Choose Children's Shoes?


When purchasing a first pair for your chaild you should consider the following things: 1.Wait to buy shoes until your child starts to walk.
2.
When it's time for your baby's first pair of shoes, take your well rested, recently fed child to a quality children's shoe store that stock brands such as Stride Rite and Elefanten. The best stores have patient and knowledgeable salespeople who are expert at fitting children's feet.
3.Have the salesperson measure the length and width of both of the child's feet. Many babies have an extra wide foot and may need a special size.
4.
Make sure the shoes aren't too big, which can cause a baby to trip. First shoes should be soft and pliable to let new walkers feel the ground.

Oct 27, 2010 | Clothing Accessories

1 Answer

I now need to put a front license plate (MA law change) on my 2000 camry LE. I see the marking holes on the bumper but what size screw is recommended by the manufacturer?


Most salespeople took a self tapping screw and applied the plates directly to the indicator holes. If you stop by a local Toyota dealership I'm sure a salesperson would install it for you for the price of a few referrals down the road. If not send me a note and I will mail you a few for free.

Jul 08, 2009 | 2000 Toyota Camry

1 Answer

I need Dogbone bearing dimentions


The outside edge of all bearings have a maker and bearing number i.e. "NGK2604". Get the number then go to an industrial bearings company. They can look up the bearing and see if it is in stock and if not, they can look up a matching bearing from a different manufacturer i.e. " SAS3107". The actual dimensions will likely be available at the same location. By the way, most people have no idea what you mean by "dogbone". Do you mean the crankshaft main bearings?

Jun 08, 2009 | 1997 Honda CBR 600 F(3)V

2 Answers

How do i put my radio code into my renault scenic


when you get the four zeros on the display press no1 for what number you wish to display, then repeat for the following three numbers, eg code is 4 5 6 7 so press number 1 four times, number 2 five times, number 3 six times and number 4 seven times, when code is entered press and hold the number 6 button.this will reactivate the radio.

May 06, 2009 | Car Audio & Video

1 Answer

Application of Pivot table & Sub total with Examples


Suppose you have a Database regarding sales of this Month inthe Column and Row Fromat with column Heading SalesPerson, Company, Product and Amount. where salesperson sales to different company different Products more than once. In this type of Database Salesperson, Company and Products appears more than once. Now you can use PivotTable to view and analyze your data in different Formats like Salesman wise COmpany wise and Productwise with different formatting REports with a facility of Preparing Charts too.

Dec 03, 2008 | Computers & Internet

2 Answers

Source code for word count


Haha, i wrote one of thee a while ago for a competition. You need to us e the char at function mate :D
Inside a for loop
Ill havea look for you though :D

Sep 09, 2008 | ArcMedia JavaScript Source Code 3000 Pro...

2 Answers

Low flame


This problem most likely is with your regulator. if you decide to replace it please make sure you get the right size replacement. Some salespeople dont know the difference there are four common sizes from class 1 to class 4. If you take the old one with you make sure you match the numbers up with a new one.

Hope this helps You
please rate me.

Jul 18, 2008 | Weber Gas Go-Anywhere Grill

1 Answer

Help me solve


1. Four Hundred Seventy-Eight Ten Thousandths
2. One Thousand Four Hundred Thirty Five Ten Thousandths.
3. Three Thousand Two Hundred Five Ten Thousandths.
4. Four thousand Seven Hundred Eighty Four Ten Thousandths.
5. Four Hundred Ninety Seven Ten Thousandths.

OR

1. Zero point zero four seven eight.
2. Zero point one four three five
3. Zero point three two zero five
4. Zero point four seven eight four
5. Zero point zero four nine seven

Thanks and please take a moment to rate as fixya.

Jul 06, 2008 | Audio Players & Recorders

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

485 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...