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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started