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:
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
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:
|

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









