rick oversees Make Your Own Music, a business specializing in musical instruments such as guitars, drums, and synthesizers. Commission rates for staff are determined by sales at the store, with the following tiered rates: - 11% for sales under $10,000- 13% for sales between $10,000 and $14,999- 15% for sales between $15,000 and $17,999- 17% for sales between $18,000 and $21,999- 19% for sales of $22,000 or more. Employees have the option to withdraw up to $2,500 monthly from future commissions. Shortfalls in commission repayments must be covered by employees. The monthly pay formula is: pay = (sales * commission rate) - advanced pay. rick seeks a program to automate this process. The algorithm: 1. Obtain the monthly sales figure from the salesperson.2. Retrieve the amount of advanced pay taken by the salesperson.3. Determine the appropriate commission rate based on monthly sales.4. Calculate the salesperson's pay using the provided formula. A negative amount indicates repayment owed to the company. pseudo code: Have a function to get sales and return sales Have a function to get advance and return advance have a function to get to analyze commission and return the commission base of sales calculate the salesperson pay in main function using the formula.
rick oversees Make Your Own Music, a business specializing in musical instruments such as guitars, drums, and synthesizers. Commission rates for staff are determined by sales at the store, with the following tiered rates:
- 11% for sales under $10,000
- 13% for sales between $10,000 and $14,999
- 15% for sales between $15,000 and $17,999
- 17% for sales between $18,000 and $21,999
- 19% for sales of $22,000 or more.
Employees have the option to withdraw up to $2,500 monthly from future commissions. Shortfalls in commission repayments must be covered by employees. The monthly pay formula is: pay = (sales * commission rate) - advanced pay. rick seeks a program to automate this process. The
1. Obtain the monthly sales figure from the salesperson.
2. Retrieve the amount of advanced pay taken by the salesperson.
3. Determine the appropriate commission rate based on monthly sales.
4. Calculate the salesperson's pay using the provided formula. A negative amount indicates repayment owed to the company.
pseudo code:
- Have a function to get sales and return sales
- Have a function to get advance and return advance
- have a function to get to analyze commission and return the commission base of sales
- calculate the salesperson pay in main function using the formula.
Step by step
Solved in 2 steps