This code is supposed to determine a salesperson's gross pay for last week, calculate and display thier earnings. The salesperson each receive $200 per week plus 9 percent of thier gross sales. The output should display like this:
Enter sales in dollars (-1 to end):
Salary is: $650.00
Enter sales in dollars (-1 to end): -1
Is my code right? I am simply confused.