Calculate the weekly paycheck for a widget salesman. Every salesman has a $500 base salary. Additional salary is earned by commission based upon weekly sales. The commission is a sliding scale; the higher the sales, the higher the commission percentage. The commission rates are as follows:

Weekly Sales Amount Commission Percentage
$0 to $1000 5%
>$1000 to $10000 7%
>$10000 10%

You will input weekly sales amount and output gross salary amount. We will ignore taxes, FICA and other deductions for this exercise.

Sample Run:
Please enter weekly sales amount: 5500
Your gross salary this week is: $885.00
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.