Data structure & algorithm

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 different type of product actually sold. Each slip contains:

a) The salesperson number,

b) The product number, and

c) The total money value of the product sold that day.

Tags: No tags