Wat is LessonUp
Zoeken
Kanalen
aiToolsTab
Inloggen
Registreren
‹
Terug naar zoeken
Year10C Programming fundimentals 2
Year10C Programming fundimentals 2
Programming Fundamentals - Arrays
1 / 16
volgende
Slide 1:
Tekstslide
Computing
Upper Secondary (Key Stage 4)
GCSE
In deze les zitten
16 slides
, met
interactieve quizzen
en
tekstslides
.
Lesduur is:
120 min
Start les
Bewaar
Deel
Printen
Onderdelen in deze les
Year10C Programming fundimentals 2
Programming Fundamentals - Arrays
Slide 1 - Tekstslide
What does this code do?
Slide 2 - Tekstslide
Answers.
Slide 3 - Open vraag
Download Predict 1
Slide 4 - Tekstslide
Change the variable array name.
Decrease the size of the array
Cast the input to the appropriate data type.
Slide 5 - Tekstslide
A 1 dimensional array is basically a list where we store a data set.
All the data items are of the same data type.
The numbers across the top are the index locations for each data item
If we wanted to put a value in index position 3 like so:
score [3] = 9
If we wanted to output the value at index 5:
print (“Value at position 5 is “, score[4])
Slide 6 - Tekstslide
Slide 7 - Tekstslide
Watch the chapter 6 video(5mins)
Slide 8 - Tekstslide
Read chapter 6 and complete activity C. (10 mins)
Slide 9 - Tekstslide
Complete activity D.(5 mins)
Slide 10 - Tekstslide
Complete the classroom array assignment.
Slide 11 - Tekstslide
2 Dimensional Arrays
If we want to store more than 1 piece of information about each data item we can use a two dimensional array like below:
The index locations of each row refer to an individual student
The index locations of each column refer to an individual student test score.
To place student 1’s score for test 2 of 9 we would do the following:
testscores [1,2] = 9
Slide 12 - Tekstslide
Cars [0,1]
Slide 13 - Open vraag
Cars [1,1]
Slide 14 - Open vraag
Draw out an example of a 2D array in your notebook and write the Pseudocode to show how you would add an item to it.
Slide 15 - Tekstslide
What I learned today?
Slide 16 - Woordweb
Meer lessen zoals deze
How Sustainable is my Breakfast?
14 days ago
-
26 slides
Food science
Science
+1
Lower Secondary (Key Stage 3)
Primary Education
Kommagetallen les 82/83
February 2024
-
8 slides
Wiskunde
Lager onderwijs
Mental Health Matters
December 2024
-
8 slides
Citizenship
PSHE
+2
Lower Secondary (Key Stage 3)
Upper Secondary (Key Stage 4)
BTEC, GCSE
PSHE
Programming A Screen Turtle
December 2023
-
19 slides
Computing
Primary Education
LessonUp Inspiration
Illegal Fishing Lesson 1 (Primary)
December 2022
-
29 slides
Social Studies
History
+4
4-6 Grade
6th,7th Grade
SEA SHEPHERD
Toothfish Poaching (Primary)
December 2022
-
31 slides
Social Studies
History
+3
4-6 Grade
6th,7th Grade
SEA SHEPHERD
Toothfish Poaching (Secondary)
December 2022
-
31 slides
Social Studies
History
+3
7-9 Grade
9-11 Grade
SEA SHEPHERD
What laws govern the sea? (Secondary) - Lesson Five
April 2023
-
13 slides
Social Studies
History
+3
11th,12th Grade
SEA SHEPHERD