Question: java program Q2. [5 pts] A company has 3 salesmen and selys 5 different products. Each month the company computes: - the total number of
Q2. [5 pts] A company has 3 salesmen and selys 5 different products. Each month the company computes: - the total number of sold items of each product, and - the total number of sold item for each salesman. Use a two-dimensional array to store the number of products sold by each salesman. Read the number of sold items of each salesman from the user. Then print the total number of sold items for each product and the total number of sold item of each salesman. Sample output: Enter the number of sold items for salesman 0 Product 0: 2 Product 1: 5 Product 2:3 Product 3:4 Product 4:2 Enter the number of sold items for salesman 1 Product 0:6 Product 1:7 Product 2: 2 Product 3:4 Product 4:5 Enter the number of sold items for salesman 2 Product 0:2 Product 1:4 Product 2: 3 Product 3: 9 Product 4:6 Number of sold items for product 0 is 10 Number of sold items for product 1 is 16 Number of sold items for product 2 is 8 Number of sold items for product 3 is 17 Number of sold items for product 4 is 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
