Question
IN C PLEASE AND USE LOOPS JUST LIKE THE DIRECTION SAYS!! THANKS SO MUCH Sales Commission ASSIGNMENT: Write a program that will calculate a sales
IN C PLEASE AND USE LOOPS JUST LIKE THE DIRECTION SAYS!! THANKS SO MUCH
Sales Commission
ASSIGNMENT:
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.
Accumulate (sum) the sales figures for all the sales, and display the total and the average after the sentinel-controlled loop ends.
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): $ 1234.50 The person receives $xxx.xx.
Enter the amount of sales (-1 to quit): $-1
The total of the sales was $xxxx.xx. The average sales was $xxx.xx.
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