Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 08:00, qveenvslayin
How can smart devices benefit businesses, organizations, and social communities in the global marketplace?
Answers: 1
image
Computers and Technology, 24.06.2019 08:00, Maxxboogie
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, RG1971
(, urgent need): how do i change my username
Answers: 1
image
Computers and Technology, 24.06.2019 10:30, brandon1748
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
Do you know the correct answer?
Sales commission (Using array) A company pays its five salespeople on a commission basis. The sales...

Questions in other subjects:

Konu
Social Studies, 30.04.2021 22:10
Konu
Mathematics, 30.04.2021 22:10