Sales Commission

Download Category:

SalesCommission.zip - (5.29 MB)
[
SalesCommission/Debug/
SalesCommission/Debug/cl.command.1.tlog
SalesCommission/Debug/CL.read.1.tlog
SalesCommission/Debug/CL.write.1.tlog
SalesCommission/Debug/link.5084.read.1.tlog
SalesCommission/Debug/link.5084.write.1.tlog
SalesCommission/Debug/link.5084-cvtres.read.1.tlog
SalesCommission/Debug/link.5084-cvtres.write.1.tlog
SalesCommission/Debug/link.command.1.tlog
SalesCommission/Debug/link.read.1.tlog
SalesCommission/Debug/link.write.1.tlog
SalesCommission/Debug/link-cvtres.read.1.tlog
SalesCommission/Debug/link-cvtres.write.1.tlog
SalesCommission/Debug/mt.command.1.tlog
SalesCommission/Debug/mt.read.1.tlog
SalesCommission/Debug/mt.write.1.tlog
SalesCommission/Debug/rc.command.1.tlog
SalesCommission/Debug/rc.read.1.tlog
SalesCommission/Debug/rc.write.1.tlog
SalesCommission/Debug/SalesCommission.exe
SalesCommission/Debug/SalesCommission.exe.embed.manifest
SalesCommission/Debug/SalesCommission.exe.embed.manifest.res
SalesCommission/Debug/SalesCommission.exe.intermediate.manifest
SalesCommission/Debug/SalesCommission.ilk
SalesCommission/Debug/SalesCommission.lastbuildstate
SalesCommission/Debug/SalesCommission.log
SalesCommission/Debug/SalesCommission.obj
SalesCommission/Debug/SalesCommission.pdb
SalesCommission/Debug/SalesCommission_manifest.rc
SalesCommission/Debug/vc100.idb
SalesCommission/Debug/vc100.pdb
SalesCommission/ipch/
SalesCommission/ipch/salescommission-7faede60/
SalesCommission/ipch/salescommission-7faede60/salescommission-590a94a5.ipch
SalesCommission/Question.txt
SalesCommission/SalesCommission.cpp
SalesCommission/SalesCommission.sdf
SalesCommission/SalesCommission.sln
SalesCommission/SalesCommission.suo
SalesCommission/SalesCommission.vcxproj
SalesCommission/SalesCommission.vcxproj.filters
SalesCommission/SalesCommission.vcxproj.user
SalesCommission/Screenshot_1.png
]

Assume a salesperson is paid a variable-rate commission depending on the number of sales made for the week. The quota is 30 sales.

If the persons individually make fewer than 10 sales, they are paid $50/sale. If they make 10 to 30 sales, they are paid $100/sale. If they exceed the quota, they are paid $150/sale. If they make fewer than 5 sales or more than 60 sales, it is considered to be an input error and no commission is paid.

Write a program to input a salesperson’s name and number of sales made. Write a function that will calculate the commission. The function should accept number of sales and return amount of commission.

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.