Question: Write a program that will calculate a sales person's weekly salary.The sales person receives a weekly salary of $200.00 plus a commission of 9% on

Write a program that will calculate a sales person's weekly salary.The sales person receives a weekly salary of $200.00 plus a commission of 9% on the amount of sales for the week.

The program will ask the user to enter the amount of sales for the week. Put the entire program into a sentinel-controlled loop so that the user can enter a negative number for the sales when all the sales people's weekly salaries have been calculated.

There is no validation.

Example Run: (bold type is what is entered by the user)

Enter the amount of sales (-1 to quit): $3000.00

The person receives $xxx.xx.

Enter the amount of sales (-1 to quit): $0.00

The person receives $xxx.xx.

Enter the amount of sales (-1 to quit): $-1

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!