subject

Sales commission (Using array) A company pays its five salespeople on a commission basis. The salespeople receive $200 plus 10% of their sale. For example, for the employee sale of $1000, the commission is $300.
Write a program in C++ that:
• inputs each employee sales.
• The program then calculates the employee commission, prints out each employee commission.
• The program calculates the total sum of all commissions paid, and print.
• Your program will use a sentinel value to exit.
• You must use a one-dimensional array for the sales people commissions.
Note: Do not use switch or multiple if-statements.
Your output should look similar to the following:

Enter 1 -4 for the Employee number, -1 to end
Enter employee 1, sales: 1080
The commission for employee 1, is 300.80
Enter 1 -4 for the Employee number, -1 to end

Enter employee 2, sales: 2500
The commission for employee 2, is 450.00
Enter 1 -4 for the Employee number, -1 to end
Enter employee 3, sales: 50e
The commission for employee 3, is 250.00

Enter 1 -4 for the Employee number, -1 to end
Enter employee 4, sales: 1790
The commission for employee 4, is 379.00
Enter 1 -4 for the Employee number, -1 to end

Employee 1, commission =300.00
Employee 2, commission =450.00
Employee 3, commission =250.00
Employee 4, commission =379.00
Employee 5, commission =0.00
Sum of all commissions=1379.00

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:20
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
You know the right answer?
Sales commission (Using array) A company pays its five salespeople on a commission basis. The sales...
Questions
question
Biology, 05.10.2020 03:01
question
Mathematics, 05.10.2020 03:01
question
Mathematics, 05.10.2020 03:01
question
Mathematics, 05.10.2020 03:01