Question: 1. Read the following C program and complete it by filling in the blanks: 1 #______________ 2 using namespace std; 3 ___________ CommissionCalculation(_____); 4 void

1. Read the following C program and complete it by filling in the blanks:

1 #______________

2 using namespace std;

3 ___________ CommissionCalculation(_____);

4 void main()

5 ___________

6 ____________ i;

7 double sales;

8 double ______________________;

9 for (i=1______ i<=3 _____ i++)

10 {

11 sales=10*i;

12 CommissionRate=CommissionCalculation(sales);

13 printf("The commission rate for sales of %2.2f is : __2.2f. ", 14 sales, CommissionRate);

15 ________

16 } 17 double CommissionCalculation(double S)

18 { 19 __________ Commission;

20 if (S<=15) {Commission=0.01; };

21 if ((S>15) && (S<=25) )__________ {Commission=0.02; };

22 if (S>25) {Commission=0.01; };

23 ___________(Commission);

24 ________

Wang, Hai; Wang, Shouhong. Programming Languages for MIS: Concepts and Practice (Page 50). CRC Press. Kindle Edition.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!