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:20
The thickness of a part is to have an upper specification of 0.925 and a lower specification of 0.870 mm. the average of the process is currently 0.917 with a standard deviation of 0.005. determine the percentage of product above 0.93 mm.
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
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
Social Studies, 22.01.2021 17:10
question
Mathematics, 22.01.2021 17:10
Questions on the website: 13722362