Starting from:
$22.99

$16.99

Pay_calculator.c Solution

Pay_calculator.c Solution

Instructions

You are to write a program, called pay_calculator.c that will determine your The following base pay, commission and bonus are For weekly sales at or below 52,000 per week, your base salary is $300, and you evaluated on the following intervals bonus.

For weekly sales above $2000 and up to and including $20,000, your base salary is $350, and you get 1.5% commission. As long as you have not work 3 or more years for the company, you get an incentive bonus of $150.

For weekly sales over $20,000 your base salary is S 2.500, and you get 35% commission Your bonus is dependent on your sales code, either 'd' for domestic or Y for imported. If code is 'd, your bonus ls 900、lf the code is T, your bonus is SS50,

The flow chart and additional boundary value test cases are shown on the next page of this document. When your program runs it should look exactly like the following

Enter you week's sales: 19438 fetar nuaber st fvit vears with the conpany

Enter youweek's sates: 1798 4.5 years,

enter 4 Your week's sates:1798.e0 Your veek's salarys 300.0

Your week's sales:&19438.

 Your week's salary:358.

Your veek's bonusi Your week's connissionss

Your week's gross pay; S .00 300

 Your week's commission: 291.57

Your veek's gross pay: 791.57 Progran is terminat ing Progran is terminating or Enter you week's sates: 38898

Enter you sales code d' for donestic, for isported:d

Your week's sates: 58098.00

Your week's salary: 25e0.00

Your week's bonus: s980.0

Your week's commission: 2033.43

Your week's gross pay: 5433.43

Progran is terminating

 

On the last page is a grading criteria that will let you know how you will be evaluated on this problem. Use this to make sure you have included everything that will be evaluated. If you complete the assignment before the end of the period and have the instructor sign off on your program, you will earn 10 bonus points. Iif you get your program evaluated, DO NOT submit your code

More products