Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

nces Mailings Review View llocation and might be unsafe. Click for more details, Enable Editing 3. Crazy Al's Computer Emporium is a retail seller of

image text in transcribed
image text in transcribed
image text in transcribed
nces Mailings Review View llocation and might be unsafe. Click for more details, Enable Editing 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% For example, a salesperson with $16,000 in monthly sales will earn a 12 percent commis sion ($1,920.00). Another salesperson with $20,000 in monthly sales will earn a 14 percent commission ($2,800.00). Because the staff only gets paid once per month, Crazy Al's allows each 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 $1,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 cases the task of calculating the end-of-month commission Program Design I The program must perform the following general steps: 1. 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 D... e W yout References Projets A Procce View MicroSD WONG View Mailings Review from an Internet location and might be unsafe. Click for more details. Enable Editing 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 $1,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 cases the task of calculating the end-of-month commission Program Design The program must perform the following general steps: 1. 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 5. Calculate the salesperson's pay by subtracting the advanced pay from the commission. If the amount is negative, the salesperson must reimburse the company The commission rate is determined by the monthly sales amount. An if/else if statement can be used to test the sales amount and assign the correct rate 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 & e W CCCVICW MICIOSO Wone References Mailings Review View om an Internet location and might be unsafe. Click for more details. Enable Editing Program Output with Example Input Shown. Enter the salesperson's monthly sales: 19600 Enter the amount of advanced pay for this salesperson: 1000 Pay Results Sales: $19600.00 Commission Rate: 0.14 Commission: $2744.00 Advanced Pay: $1000.00 Remaining Pay: $1744.00 Program Output with Different Example Input Shown. Enter the salesperson's monthly sales: 9000 Enter the amount of advanced pay for this salesperson: 1000 Pay Results Sales: $9000.00 Commission Rate: 0.05 Commission: $450.00 Advanced Pay: $1000.00 Remaining Pay: S-550.00 W

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

LO2 Identify components of workflow analysis.

Answered: 1 week ago