J
JCLin24
Guest
JW Sales employs 10 sales people. The sales made by JW’s sales people in Table 1.0
during the month of January, February and March are stored in to any dimensional array.
The manager wants a program that allows him to enter the current bonus rate. The program
is expected to display each sales person’s number (1 through 10), total sales amount and
total bonus amount paid to all sales people. You are required to test the program using 5%
and 10% bonus rates.
Sales Person January February March
1 2400 3500 2000
2 1500 7000 1000
3 600 450 2100
4 790 240 500
5 1000 1000 1000
6 6300 7000 8000
7 1300 450 700
8 2700 5500 6000
9 4700 4800 4900
10 1200 1300 400
Table 1.0 Sales record over three months at JW Sales
Program source that includes appropriately designed C syntax with elements;
• program libraries
• variables and data types
• if(), if()else, if()else if() or switch() statements
• while(), do...while() or for() statements
• function prototypes, call by value, call by reference
• array index and offset notation
• suitable comments
Continue reading...
during the month of January, February and March are stored in to any dimensional array.
The manager wants a program that allows him to enter the current bonus rate. The program
is expected to display each sales person’s number (1 through 10), total sales amount and
total bonus amount paid to all sales people. You are required to test the program using 5%
and 10% bonus rates.
Sales Person January February March
1 2400 3500 2000
2 1500 7000 1000
3 600 450 2100
4 790 240 500
5 1000 1000 1000
6 6300 7000 8000
7 1300 450 700
8 2700 5500 6000
9 4700 4800 4900
10 1200 1300 400
Table 1.0 Sales record over three months at JW Sales
Program source that includes appropriately designed C syntax with elements;
• program libraries
• variables and data types
• if(), if()else, if()else if() or switch() statements
• while(), do...while() or for() statements
• function prototypes, call by value, call by reference
• array index and offset notation
• suitable comments
Continue reading...