Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming in C language to be run on code blocks 3. (Two-dimension Array) A company that pays their employees on a commission basis has contracted
Programming in C language to be run on code blocks
3. (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 s 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 sales peopleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started