There are some mistakes in the lecture 3 which are mentioned below: At 11:25 mins of the Lecture 3: Flow Chart and Pseudocode, in the flow chart of printing average of 3 numbers the final print statement should be “Print AVG” instead of “Print SUM” as we are finding the Average of 3 numbers. At 7:12 mins of the Lecture 3: Flow Chart and Pseudocode, Regarding the symbols used to represent the flow chart, generally oblong symbol is used to represent START and END of a flow chart and a parallelogram symbol is used to represent INPUT and OUTPUT, and the Circle symbol is used as a connector, when we need to represent the continuation of flow chart when there is shortage of space. At 18:52 mins of the Lecture 3: Flow Chart and Pseudocode, in the flow chart of printing the average of N numbers: after reading the number and storing it in N we should store in another variable say M. So after the statement “Read the value of N” there will be another statement which will be “M=N” in a rectangular box. And after the decision box instead of AVG=SUM/N it will be AVG=SUM/M, as the value of N is becoming zero at the end of the decision loop. At 28:07mins of the Lecture 3: Flow Chart and Pseudocode: in the flow chart for finding Max of N positive integer please follow the flow chart drawn in blue colour. Please ignore the corrections made.
Thank you so much sir and whole I.I.T.s and whole N.P.T.E.l for providing this informative video and such an amazing platform of learning.Thank you very very much . Keep it up.....
As we decrement N by 1 each time, at the end the value stored in N becomes 0. So right in the beginning we have to assign the value of N initially to another variable say N1 outside the loop and while finding the average it should be AVG=SUM/N1.
Yes, you can do that, but in that case you have to first Read 3 numbers and store it in Number1, Number 2 and Number 3. Then you can do the sum as SUM=Number1+Number2+Number3
Sir, you have did a mistake here! in the flow chat, 13:38:01 (exactly) here, the Start --> get num1 --> sum = sum + num1 -->.... etc, at last the final calculation you did is: AVG = SUM/3 right?? then why do you "print" the sum? and what's the use of AVG variable? if you print the sum, as you said the example 5+8+3 = 16 will be printed 16 and not the 5.0, which is the floating point number.. i think you should print the avg value instead of sum! correct me if am wrong, i guess avg should be printed as a floating point number at last? isn't it?
There are types of variable declaration global and local, since computing of average is done outside the loop the N will retain the value, changing the N inside the loop will not effect the outside one
Sir, while finding average of N numbers, Flow chart is not giving correct answer. If I say AVG= SUM/N now N is already become zero at the end of loop. So we should save this N to some other number and decrement?
Sir no need to check N-1 in last problem as we already checked N as max than obviously it max than other numbers (N-1,N-2,......) it shows that there is an error in flow chart,as u not considered N positive integers, u considered it only as max upto Nth positive integer which is also stops at first step (to read number N which is max).
with all due respect sir .....u made a mess of this....the original code was absolutely correct for finding n max no.....coz n should reduce even if num< max.... and repeat when n>0
The average of number problems - I think you should change update logic to reflect N!=0 since the concept of global and local variables is not introduced. Just going step by step, average is being calculated by sum divided by 0 since we are decrementing N. You can increment N and have a condition for it rather than decrement logic.
The flowchart is incorrect and will yield infinity irrespective of the input since N becomes zero at the last step. Instead a new variable must be introduced right after Read N. This variable must be equated to N(ex:X=N). If we replace N with this new variable and write X=N-1 and X=0 in the flowchart, the loop will continue until X=0 where it stops looping and this will have no effect on the value of N used in the final step.
The lecture has a lot of mistakes, idk if it is how they teach in IIT. These are the mistakes: 1. Pseudocode has START as first step. Shown wrong on the avg of 3 numbers one. 2. If you keep decrementing N in finding sum of N numbers, it'll get 0 at the end and the avg will become infinite as avg=sum/N. 3. Flowchart for Max of N numbers was correct before he made the changes. The changes he made doesn't make sense and will keep going into infinite loop until every number input isn't greater than the previous.
Jiby John point(3) - exactly... He made it more confusing for beginners like me. The videos should be checked n corrected before uploading it as this was a blunder.
jiby john point (2)-Here the n denotes the read the value of n. It is right you just have to think it correctly. point(3)-The changes are corrected because when you put MAX = 0 and when N is not greater than zero then it is obvious that the value is zero because we finding MAX of N positive numbers. And it will not go in infinite loops because we take higher numbers so that it became 0 and finish the program
I don't know why this sir is only wasting time by repeating the first three module instead of teaching the main part of c. Among the first three module only second module is important and other two are useless.You can express the gist of these module by a single module
Actually iam not saying about this lecture but This topics are also required because we must know how programming is useful in our daily and How the code actually works when we wrote it .this flow chart and pseudo code also imp . I know you completed the course this is for future viewers 😅
There are some mistakes in the lecture 3 which are mentioned below:
At 11:25 mins of the Lecture 3: Flow Chart and Pseudocode, in the flow chart of printing average of 3 numbers the final print statement should be “Print AVG” instead of “Print SUM” as we are finding the Average of 3 numbers.
At 7:12 mins of the Lecture 3: Flow Chart and Pseudocode, Regarding the symbols used to represent the flow chart, generally oblong symbol is used to represent START and END of a flow chart and a parallelogram symbol is used to represent INPUT and OUTPUT, and the Circle symbol is used as a connector, when we need to represent the continuation of flow chart when there is shortage of space.
At 18:52 mins of the Lecture 3: Flow Chart and Pseudocode, in the flow chart of printing the average of N numbers: after reading the number and storing it in N we should store in another variable say M. So after the statement “Read the value of N” there will be another statement which will be “M=N” in a rectangular box. And after the decision box instead of AVG=SUM/N it will be AVG=SUM/M, as the value of N is becoming zero at the end of the decision loop.
At 28:07mins of the Lecture 3: Flow Chart and Pseudocode: in the flow chart for finding Max of N positive integer please follow the flow chart drawn in blue colour. Please ignore the corrections made.
.. 😅 thank you bro
Thanks man
Thank you sir...
N=N-1 yaha bhi m put karna hai kya
@@chandrakantgaikwad7190 nope. we just put N=M because at the time of calculating avg = sum/N, N will be 0.
so we store initial value of N (say M)
No correction needed in flow chart it is absolutely correct.
Otherwise program never decrement number for N < max.
Flowchart creates ambiguity between value of number at Nth place and N itself. I Mean value of number at 9th place and 9 itself
31:30 What if the Nth number at starting is 0, it will result in wrong max
Thank you so much. I learned more from this than the two years I’ve been doing computer science in school.
In my school they taught us that oblong is for start and stop and parallelogram is for input/output
They r right
This video is from 2017. At that time those symbols were used now they have changed.
@@spandexspleen achhaa
@@pratikdubey9083 nahi bhai he is professor at IIT kharagpur
@@udaypratapsingh8923 achha
Thank you so much sir and whole I.I.T.s and whole N.P.T.E.l for providing this informative video and such an amazing platform of learning.Thank you very very much . Keep it up.....
These are the professors whose books we all read .
Thanks for giving the insight of IITs method of teaching.
As we decrement N by 1 each time, at the end the value stored in N becomes 0. So right in the beginning we have to assign the value of N initially to another variable say N1 outside the loop and while finding the average it should be AVG=SUM/N1.
Yes. If N is being decremented then dividing by N when N=0 leads to error.
value of number at nth place may or may not be equal to n. This ambiguity exist in the flowchart
exactly
Yes Shruti, right
Now what must be written in rectangle box?
30:35 no need o change arrow instead add one more arrow from n=0 to read number
exactly....i was also confused....came here to clarify if someone else also noted
thanks sir for providing quality education for free💖
very simplified. Excellent !!!!!
Yes, you can do that, but in that case you have to first Read 3 numbers and store it in Number1, Number 2 and Number 3. Then you can do the sum as SUM=Number1+Number2+Number3
Sir, you have did a mistake here! in the flow chat, 13:38:01 (exactly) here, the Start --> get num1 --> sum = sum + num1 -->.... etc, at last the final calculation you did is:
AVG = SUM/3 right??
then why do you "print" the sum? and what's the use of AVG variable?
if you print the sum, as you said the example 5+8+3 = 16 will be printed 16 and not the 5.0, which is the floating point number..
i think you should print the avg value instead of sum!
correct me if am wrong, i guess avg should be printed as a floating point number at last? isn't it?
You are a great teacher
There are types of variable declaration global and local, since computing of average is done outside the loop the N will retain the value, changing the N inside the loop will not effect the outside one
The flowchart is right I think
yes
The last flowchart of max of N positive integers was already correct why did the lecturer redrew and made it wrong.
From where did you get those flowchart symbol meaning? A circle implies connector. Why is it used for START?
uncle you teach nice i understood everything
😂😂😂😂😂😂😂😂😂 "uncle"👍
thank u sir
Please anyone say me, finding average of 3 number is like
Start-> Read a, b, c-> Sum=0, Sum=a+b+c, Avg=Sum/3-> Stop
That flowchart was already correct 😭😭😭😭
Sir, while finding average of N numbers, Flow chart is not giving correct answer. If I say AVG= SUM/N now N is already become zero at the end of loop. So we should save this N to some other number and decrement?
but that value of n will not be the global value so it wouldn't affect the average because still the global value is the original value of n
sorry but i need to print AVG NOT SUM!!!!!!! check it at the end
Sir no need to check N-1 in last problem as we already checked N as max than obviously it max than other
numbers (N-1,N-2,......) it shows that there is an error in flow chart,as u not considered N positive integers, u considered it only as max upto Nth
positive integer which is also stops at first step (to read number N which is max).
Thank you sir
Thankou so much sir
17:51 You are dividing sum by 0. Astonishing how one can make such a mistake!
with all due respect sir .....u made a mess of this....the original code was absolutely correct for finding n max no.....coz n should reduce even if num< max.... and repeat when n>0
what is he playin at
yaa flow chart at last was already correct
The average of number problems - I think you should change update logic to reflect N!=0 since the concept of global and local variables is not introduced. Just going step by step, average is being calculated by sum divided by 0 since we are decrementing N. You can increment N and have a condition for it rather than decrement logic.
The flowchart is incorrect and will yield infinity irrespective of the input since N becomes zero at the last step. Instead a new variable must be introduced right after Read N. This variable must be equated to N(ex:X=N). If we replace N with this new variable and write X=N-1 and X=0 in the flowchart, the loop will continue until X=0 where it stops looping and this will have no effect on the value of N used in the final step.
The lecture has a lot of mistakes, idk if it is how they teach in IIT. These are the mistakes:
1. Pseudocode has START as first step. Shown wrong on the avg of 3 numbers one.
2. If you keep decrementing N in finding sum of N numbers, it'll get 0 at the end and the avg will become infinite as avg=sum/N.
3. Flowchart for Max of N numbers was correct before he made the changes. The changes he made doesn't make sense and will keep going into infinite loop until every number input isn't greater than the previous.
Jiby John point(3) - exactly... He made it more confusing for beginners like me.
The videos should be checked n corrected before uploading it as this was a blunder.
jiby john point (2)-Here the n denotes the read the value of n. It is right you just have to think it correctly.
point(3)-The changes are corrected because when you put MAX = 0 and when N is not greater than zero then it is obvious that the value is zero because we finding MAX of N positive numbers. And it will not go in infinite loops because we take higher numbers so that it became 0 and finish the program
You are right
Any better UA-cam channel??
you are right but instead of changing he should add a arrow from n=0 to read number no need to change that arrow
Any bietian
Sir. Why we assume sum to be 0 while finding the average of 3 numbers??
obiviously its start from zero
20:05 avg will be infinite since sum is 0
The value of N to be stored in another variable
Keep the value of N stored in another variable say M and then use M later for computing AVG
ty sir v informative
12:20 print avg
16:35
Thanks
value of number at nth place may or may not be equal to n. This ambiguity exist in the flowchart
Sir even if the number is not greater than MAX, N will decrement because we have already read one number. Please clarify my
doubt sir?
2ne Lecture Done
peng
THICCCC
Mistakes too many mistakes in flowchart oblong is for start and end and for input or output we use //gram
No
@@rinkikumari4947 yes
I don't know why this sir is only wasting time by repeating the first three module instead of teaching the main part of c. Among the first three module only second module is important and other two are useless.You can express the gist of these module by a single module
Do you know any good video source who teaches this better?
@@sarahlolo2100 hiii
Are u iitian
Actually iam not saying about this lecture but
This topics are also required because we must know how programming is useful in our daily and
How the code actually works when we wrote it .this flow chart and pseudo code also imp .
I know you completed the course this is for future viewers 😅