Common Computer Science References
At the end of this lesson, you will be able to:
understand and use a 2D array (or list in python)
passing parameters
go over 2-D Arrays , Computer Based Problem Solving
nil
create a program that generates a 2D Array the size the user asks for
you need to get rows and columns
using loops, randomly generate numbers between 1 and 50 and place them in the 2D-array
do all of the above in the main() function
then have a function that accepts the 2D array and finds the average of all the numbers
remember, loop inside of a loop!
no using a built in average function
display average to 2 decimal places
read over 2-D Arrays , Computer Based Problem Solving
recreate the same above program in a second language
you MIGHT NOT be able change the size of the array dynamically like in Python
just pick a size for the row and column and assign them as constants
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.