Question: I am working on first exercise from textbook, Programming Languages for MIS and I read chapters and watched videos and don't know where to start.

I am working on first exercise from textbook, "Programming Languages for MIS" and I read chapters and watched videos and don't know where to start. I have to fill in the blanks and don't know where to get answers or how to figure it out. Chapter 2, page 49-50, question 1. Then I have to do a diagram. Where do I get these answers or figure them out?

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 { 50 Programming Languages for MIS? 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 ________

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!