Question: IT HAS TO BE IN C AND MAKE SURE IS A TWO-DIMENSION ARRAY. THANK YOU! (Two-dimension Array) A company that pays their employees on a

IT HAS TO BE IN C AND MAKE SURE IS A TWO-DIMENSION ARRAY. THANK YOU!

(Two-dimension Array) A company that pays their employees on a commission basis has contracted you to write a program that will calculate how much they owe their employees. The company has 4 employees and sells 5 different products. The products and the commission each employee receives from selling the products is given below: 1. bicycle $20 2. unicycle $10 3. tire $5 4. pump $2 5. chain $1 As products are sold throughout the day, each salesperson enters in their sales number followed by the number of the product they sold. For example, if salesperson 3 sold a pump, he/she would enter in "3 4". You need to write a program that will continue allowing the users to enter in sales in the given format until " -1 -1" is entered as a value. At this point, the program should print out the total amount of money that the company owes each of the salespeople.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!