Question: C++ PROGAMMING I AM NOT ADVANCED. BASIC PROGAMMING ONLY. PLEASE SHOW OUTPUT ALSO. second and third picture is an example its only one question all


3. Crazy Al's Computer Emporium is a retail seller of home computers. The sales staff at Crazy Al's works strictly on commission. At the end of the month, each salesperson's commission is calculated according to Table 1. Table 1 Commission rates Sales This Month Less than $10,000 $10,000-$14,999 $15,000-$17,999 $18,000-$21.999 $22,000 or more Commission Rate 5% 10% 12% 14% 16% v For example, a salesperson with $16,000 in monthly sales will cam a 12 percent commis sion ($1,920.00). Another salesperson with $20,000 in monthly sales will carn a 14 percent commission ($2,800.00). Because the staff only gets paid once per month, Crazy Al's allows cach employee to take up to $1,500 per month in advance. When sales commissions are calculated, the amount of each employee's advanced pay is subtracted from the commission. If any salesperson's commissions are less than the amount of their advance, they must reimburse Crazy Al's for the difference. Here are two examples: Beverly and John have $21,400 and $12.600 in sales, respectively. Beverly's commission is $2.996 and John's commission is $1,260. Both Beverly and John took 51,500 in advance pay. At the end of the month, Beverly gets a check for $1,496, but John must pay $240 back to Crazy Al's. You've been asked to write a program that eases the task commission calculating the end-of-month Program Design The program must perform the following general steps: I Ask the user for the salesperson's monthly sales. 2. Ask the user for the amount of advance pay the salesperson has drawn from the company 3. Determine the commission rate 4. Calculate the commission S. Calculate the salesperson's pay by subtracting the advanced pay from the commission. If the amoum is negative, the salesperson must reimburse the company The commission rate is determined by the monthly sales amount. An if else statement can be used to test the sales amount and assign the correct rute The following nudocode expresses the algorithm If sales se than $100110 Tale is SA The following pseudocode expresses the algorithm: If sales is less than $10,000 rate is 5% else if sales is less than $15,000 rate is 10%. else if sales is less than $18,000 rate is 12%. else if sales is less than $22,000 rate is 14% else rate is 16%. Program Output with Example Input Shown. Enter the salesperson's monthly sales: 196078 Enter the amount of advanced puy for this salesperson: 1000 Pay Results Sales: $19600.00 Commission Rate: 0.14 Commission: $2744 00 Advanced Pay: $1000.00 Remusning Pay: $1744.00 Program Output with Diferent Laame Input Shawn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
