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. Projects posted are only 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 fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.