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, 21.06.2019 17:00
In microsoft word, you can change the look of paragraphs by:
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
You know the right answer?
Sales commission (Using array) A company pays its five salespeople on a commission basis. The sales...
Questions
question
Chemistry, 20.09.2020 01:01
question
Business, 20.09.2020 01:01
Questions on the website: 13722363