Question: Q1 criteria: - Correct calculation & display; see format/pattern in the document - Able to accept & process valid numeric types, e.g., 0, 100, 456.78

 Q1 criteria: - Correct calculation & display; see format/pattern in thedocument - Able to accept & process valid numeric types, e.g., 0,

Q1 criteria: - Correct calculation & display; see format/pattern in the document - Able to accept & process valid numeric types, e.g., 0, 100, 456.78 Should not allow input of negative numbers Uses while-loop only, no for/foreach/do-while/goto Will keep on running until -1 is entered Shows 'Goodbye!' when ended Question 1 (2.5 marks]: A dental Equipment Company pays its sales employees on a commission basis. The monthly salary of the sales employee is $1,000 plus 8% of their gross sales for that month. For example, a salesperson who sells $10,000 worth of Diamond instruments for dentists in a month receives 1,000 plus 8% of $10,000, or a total of $1,800. Write a program that uses a while statement to input each salesperson's gross sales for last month and calculates and displays that salesperson's earnings. Process one salesperson's figures at a time. To stop the program the user type "-1" and display the message "Goodbye!". Enter sales in dollars (-1 to end): 5000 Salary is: $1400.00 Enter sales in dollars (-1 to end): 8000 Salary is: $1640.00 Enter sales in dollars (-1 to end): 9000 Salary is: $1720.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!