- #1
- 334
- 1
Hi
Please help me with the following queries. Please be specific and simple in your replies. Thanks a lot.
Page 1:
http://img15.imageshack.us/img15/6656/chp11page1.jpg
Page 2:
http://img248.imageshack.us/img248/202/chp11page2.jpg
On page 1 the author says "Is total mark sheets checked = 50" but in the next example on page 2 the author says "If total employees checked < 100". Isn't that "<100" thing really confusing? Is the algorithm suppose to stop once the value is greater than 100 which won't happen? If the author had assigned the first employee index 0, then it would be more apt to say "If total employees checked = 99".
Moreover, don't you think a vital step is missing from the algorithm on page 2 after Step 7 because there would be employees who wouldn't receive any bonus but need to included in the counter of total employees checked?
What is the need to initialize the counters to zero in Step 1 of both algorithms?
In Step 2 of the algorithm on Page 1 it says "Take the mark sheet of NEXT student" and the same is said in Step 3 of the algorithm on Page 2 "Take the appraisal form of the NEXT employee". What is that "NEXT" student/employee is the first student/employee; I mean when the algorithm has just stated working there would be always a 'first' case it will work on and once it is done with it, then it will proceed to the next case.
Please help me with the above questions. I seriously need your help! Thanks a lot.
Please help me with the following queries. Please be specific and simple in your replies. Thanks a lot.
Page 1:
http://img15.imageshack.us/img15/6656/chp11page1.jpg
Page 2:
http://img248.imageshack.us/img248/202/chp11page2.jpg
On page 1 the author says "Is total mark sheets checked = 50" but in the next example on page 2 the author says "If total employees checked < 100". Isn't that "<100" thing really confusing? Is the algorithm suppose to stop once the value is greater than 100 which won't happen? If the author had assigned the first employee index 0, then it would be more apt to say "If total employees checked = 99".
Moreover, don't you think a vital step is missing from the algorithm on page 2 after Step 7 because there would be employees who wouldn't receive any bonus but need to included in the counter of total employees checked?
What is the need to initialize the counters to zero in Step 1 of both algorithms?
In Step 2 of the algorithm on Page 1 it says "Take the mark sheet of NEXT student" and the same is said in Step 3 of the algorithm on Page 2 "Take the appraisal form of the NEXT employee". What is that "NEXT" student/employee is the first student/employee; I mean when the algorithm has just stated working there would be always a 'first' case it will work on and once it is done with it, then it will proceed to the next case.
Please help me with the above questions. I seriously need your help! Thanks a lot.