What if the number of the times that the loop runs varies, how do you find the number of time that the loop runs so you can divide the sum by that number to find the average. Please give me a hint. Thank you!!!!!
umm maybe you could put an integer inside that increments each time it loops, and then just check the value of the integer at the end to see how many times it ran or use that in average calculation. Not sure if we're thinking about the same thing tho
Hey i is the name of an integer variable that we are using as a counter whose value is incremented by one for each iteration of the loop. ++ is the operator that simply adds one to the value on each iteration. You need to at least watch videos 21-25 here: engineer4free.com/cplusplus and then once you understand loops and increment it them then watch videos 34-40 for more content on particular.
Thank you for this, fast and clear explanation. Easy for a slow student like me.
Glad to hear it, thanks for the comment! Do check out my whole playlist at engineer4free.com/cplusplus if you haven't already!
thanks man.. soo cool n straight forward
You're welcome!! There is more here: engineer4free.com/cplusplus =)
thank so much!!!!! so simple, ez explaination
You're welcome!! =)
Thank you
Sir kindly tell me the name of the compiler you are using on your macbook.
I'm using Xcode in this video
@@Engineer4Free sir kindly suggest me latest complier for C++ and one for Java that runs on a macbook air
But how to find the average if the numbers are negative
Question, so I have to do this for an array that is read from data files (6.82 6.18 7.56) how would I do that since the array values isn’t hard coded
is there anywhere in your videos where u explained the definition of a prototype function?
sorry to disturb u yes there is.
Yeah no worries! I believe that you are looking for video number 29 here: engineer4free.com/cplusplus
Can I put the average loop into a user defined function? And when I call it what should I put as the parameters?
Thanks !
I'm a beginner
Which IDE is that?
Xcode 👨💻
What if the number of the times that the loop runs varies, how do you find the number of time that the loop runs so you can divide the sum by that number to find the average. Please give me a hint. Thank you!!!!!
umm maybe you could put an integer inside that increments each time it loops, and then just check the value of the integer at the end to see how many times it ran or use that in average calculation. Not sure if we're thinking about the same thing tho
@@Engineer4Free Thank you very much for replying. I greatly appreciate it. 👍Good luck with your channel!!!!!
im trying to do this but my array is using user input so I don't specifically know how large the array will be...
got any ideas.
U can initialize variable size then ask user to enter size then use size on ur for loop instead of a known value. Eg) for (int i= 0; i > size; i++).
@@tsireledzogiven7642 well i turned in that project 8 months ago but thanks anyway lol
what is the program used for this?
Xcode. You can find a list of all of the hardware and software that I use for the videos here: engineer4free.com/tools
Thanks! didn't expect for you guys to be still active
Yup, still trucking along ^_^
God bless, use full video
can we do this if its reading from a txt file?
Yeah but I don't have any videos on reading .txt files sorry. It's been a long time since I worked with them.
thanks ...
Thanks for watching!
welcome sir.
sup bro, what does i ++ mean ?
Hey i is the name of an integer variable that we are using as a counter whose value is incremented by one for each iteration of the loop. ++ is the operator that simply adds one to the value on each iteration. You need to at least watch videos 21-25 here: engineer4free.com/cplusplus and then once you understand loops and increment it them then watch videos 34-40 for more content on particular.
okay