Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java program Q2. [5 pts] A company has 3 salesmen and selys 5 different products. Each month the company computes: - the total number of

java program image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions