Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions

Question

3. What should a contract of employment contain?

Answered: 1 week ago

Question

1. What does the term employment relationship mean?

Answered: 1 week ago