# 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 May 11, 2010

Hi,

In which language/technology do you want this?

Thanks.

×

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

Here's a solution, written in BASIC:

10 PRINT, "Hello World"
20 EXIT

Posted on May 14, 2009

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

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

Posted on Dec 02, 2009

×

my-video-file.mp4

×

## Related Questions:

### Out of 1,3,5,7,9,11,13,15,17,19 pick up any 5 nos. to make a total of 50.

Several ways to do this. 1, 5, 13, 15 17 is one of them.

(1 x 5) + 13 + 15 + 17

Workings:

(1 x 5) = 5

5 + 13 + 15 + 17 = 50.

- You cannot add five odd numbers together to make 50. Five odd numbers added together will always be an odd number.
- You cannot add four odd and take an odd number away as this will also total an odd number.

Therefore 2 of the numbers must be multiplied as this enables you to effectively add four odd numbers together to total an even number.

Hope this helps. Got any more?

Jan 13, 2011 | Vacuums

### 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

### Twenty-five numbers are entered from the keyboard into an array.The number to be searched is entered through the keyboard by user.Write a program to find if the number to be searched is present in the...

pseudo is
-> integer type count =0;
->Take input from user 'Number'
->loop from 0th to 24th element
->Compare each element with user entered number and if it matches then do count++.
finally display the count.

Jul 29, 2010 | Advanced Graphics Programming Using OpenGL...

### 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

### 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

### 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

### 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

### 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...

### 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

Jul 18, 2008 | Weber Gas Go-Anywhere Grill

### 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

## Open Questions:

#### Related Topics:

491 people viewed this question

Level 3 Expert

Level 3 Expert