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.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter15: Deterministic Eoq Inventory Models
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question

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.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L