Common Computer Science References
At the end of this lesson, you will be able to:
understand and use an array (or list in python) with a For ... Each loop
passing parameters
nil
create a program that has a function that will accept an array
once again you can just randomly generate 10 numbers
the function MUST use a For ... Each loop
it will find the smallest value in the array and pass it back as a single variable
you MUST use a loop, you can not use a built in "smallest" function!
NEVER pass in the number of elements in an array or list to a function!, if you can help it (talking to you C!)
the function should figure this out by itself
recreate the same above program in a second language, using a For ... Each loop
NOTE: You can turn on "Closed Captions" to see a printout of what is being said by selecting the "CC" button.
You can also have it translate the closed captions by going to "Settings, Subtitles/CC, Auto-translate" and then pick your prefered language.