Exercise 1: A large chemical company pays its sales staff on a commission basis. They receive 200 per week plus 9% of their gross sales for that week. For example, someone who sells 5000 of chemicals in one week will earn 200 plus 9% of sales, a total of 650. Develop a C program that will input each salesperson’s sales for the previous week, and print out their salary. Process one person’s figures at a time.   Enter sales (-1 to end): 5000.00  Salary is: 650.00   Enter sales (-1 to end): 00.00 Salary is: 200.00   Enter sales (-1 to end): 1088.89  Salary is: 298.00   Enter sales (-1 to end): -1   Code:   Output:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section: Chapter Questions
Problem 8PP: (Modify) a. Modify the program you wrote for Exercise 7 to provide the mass of a person as an...
icon
Related questions
Question

 

Exercise 1: A large chemical company pays its sales staff on a commission basis. They receive 200 per week plus 9% of their gross sales for that week. For example, someone who sells 5000 of chemicals in one week will earn 200 plus 9% of sales, a total of 650. Develop a C program that will input each salesperson’s sales for the previous week, and print out their salary. Process one person’s figures at a time.

 

Enter sales (-1 to end): 5000.00 

Salary is: 650.00  

Enter sales (-1 to end): 00.00

Salary is: 200.00  

Enter sales (-1 to end): 1088.89 

Salary is: 298.00  

Enter sales (-1 to end): -1

 

Code:

 

Output:

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr