fbpx

Scratch Program – Explaining LIST to Kids

How to explain list/array to kids?

Background

List is quite a new subject and might become difficult to explain it to a kids. But if we explain a new concept with something which kids are already aware of then it become easier to explain new concept.

Example: Name/Number the Rooms in the School

So I took the example of naming and numbering the rooms in any School and kids are already aware of this.

For selected rooms we have names assigned like – Sports Room, Arts Room, Music Room. This can be understood as variable. And number of kids in that room could be understood as value.

So at any point of time we may have:

SportsRoom=30
ArtsRoom=20
MusicRoom=15

For but as we know for majority of the rooms, it’s not possible to name them individually. So what we do?

So we use numbers so Room No. 231

Now in computer we usually start the numbering from 0 instead of 1. I will be explain this also in another post, but for now, we can just assume that in our school room numbering follow whole number instead of natural number.

So here it goes:

1st Room Room No 000
2nd Room is Room No. 001
…….
So 1000 rooms have  999

And now

Room[000] = 25 (which means Number of students in Room No. 000 is 25)
Room[001] = 15 (which means Number of students in Room No. 000 is 25)

Now if we want to calculate the total number of students in the school (assuming every kids is there in the class room number from 000 to 999)

Definte a new variable “TotalStudents”

TotalStudents=0
For i from 0 to 999
TotalStudents = Room[i] + TotalStudents

Do let me know what do you think about this program? If you want I can write a code on scratch for the same for better understanding.

Do refer to our other Coding for School kids here “Coding – School Kids“. You may also like to refer to Success stories of Young Kids.

About our Mission

At TheRealEducation.com, we have a mission of transforming the Education into Real Education as required. We believe that Real Education includes self-learning, peer-learning, learning from experts and more. Hence here we provide:

  • Useful quality content to enable self-learning
  • conference & meetings to enable peer-learning
  • mentors and experts to deliver classes and more

We have our another business vertical WorldclassTechTalent.com to develop tech talent. Here we offer

  • Corporate – Training & Recruitment of top tech talent
  • Experienced & Aspiring Software Engineers – Training & Recruitment assistnce
  • School/College – Coding Workshop and Facutly Development Programs

Leave a Reply

Your email address will not be published. Required fields are marked *