Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: A company pays its salespeople on a commission basis. The salespeople receive $ 1 0 0 per week plus 1 0 % of their

Description: A company pays its salespeople on a commission basis. The salespeople receive $100 per week plus 10% of their gross sales for that week. (For example, a salesperson who grosses $5000 in sales in a week receives $100 plus 10% of $5000 for a total of $600).
An intern salesperson is a student from TCC learning sales. Any salesperson with sales less than $100 only gets a base salary of $50 plus 10% commission. For example, a salesperson who grosses $50 in sales in a week receives $50 plus 10% for a total of $55.
This C program (using an one-dimensional array of counters) determine show many salespeople earned salaries in each of the following rangesassume that each sales-persons salary is truncated to an integer amount:
Place pseudo code here
*/
#include // standard input and output library
int main(void)// main function code block
{
ENTER CODE HINT: Use the pseudo code to help document your program.
return 0;
}// end main function
End program
Test Data:
Salesman Number
Gross Sales
Salesman 1
$99
Salesman 2
$50
Salesman 3
$5000
Salesman 4
$6725
Salesman 5
$5895
Salesman 6
$1023
Salesman 7
$2049
Salesman 8
$10705
Salesman 9
$400
Salesman 10
$12500
Sample Run
Enter employee gross sales (-1 to end): -1
Enter employee gross sales (-1 to end): 99
Employee Salary is $59.90
Enter employee gross sales (-1 to end): 50
Employee Salary is $55.00
Enter employee gross sales (-1 to end): 5000
Employee Salary is $600.00
Enter employee gross sales (-1 to end): 6725
Employee Salary is $772.50
Enter employee gross sales (-1 to end): 5895
Employee Salary is $689.50
Enter employee gross sales (-1 to end): 1023
Employee Salary is $202.30
Enter employee gross sales (-1 to end): 2049
Employee Salary is $304.90
Enter employee gross sales (-1 to end): 10705
Employee Salary is $1170.50
Enter employee gross sales (-1 to end): 400
Employee Salary is $140.00
Enter employee gross sales (-1 to end): 12500
Employee Salary is $1350.00
Enter employee gross sales (-1 to end): -1
Employees in the range:
$000-$99 : 2
$100-$199 : 1
$200-$299 : 1
$300-$399 : 1
$400-$499 : 0
$500-$599 : 0
$600-$699 : 2
$700-$799 : 1
$800-$899 : 0
$900-$999 : 0
Over $1000: 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago