1. (Salesperson Salary Ranges) A company pays its salespeople on a commission ba
ID: 2990885 • Letter: 1
Question
1. (Salesperson Salary Ranges) A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9 percent of $5000, or a total of $650.
Write a function GetWage that asks user to input gross sales and calculates employee salary based on input. Write another function Display that displays table of salary ranges and number of employees in each range. Write a program (using an array of counters) that determines how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson
Explanation / Answer
#include #include #include #include using namespace std; int main() { //variable declarations double minSalary = 200; double commission; double sales; double totalSalary; //take sales amount cout > sales; while( sales != -1) // loop till user enter -1 { commission = sales*9/100; totalSalary = commission + minSalary; //display total weekly salary coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.