Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 people

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_2

Step: 3

blur-text-image_3

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

Describe voluntary benefits.

Answered: 1 week ago

Question

Describe the major job evaluation systems.

Answered: 1 week ago