Qu'est-ce que LessonUp
Rechercher
Canaux
Connectez-vous
S'inscrire
‹
Revenir à la recherche
Year10C Programming fundimentals 2
Year10C Programming fundimentals 2
Programming Fundamentals - Arrays
1 / 16
suivant
Slide 1:
Diapositive
Computing
Upper Secondary (Key Stage 4)
GCSE
Cette leçon contient
16 diapositives
, avec
quiz interactifs
et
diapositives de texte
.
La durée de la leçon est:
120 min
Commencer la leçon
Partager
Imprimer la leçon
Éléments de cette leçon
Year10C Programming fundimentals 2
Programming Fundamentals - Arrays
Slide 1 - Diapositive
What does this code do?
Slide 2 - Diapositive
Answers.
Slide 3 - Question ouverte
Download Predict 1
Slide 4 - Diapositive
Change the variable array name.
Decrease the size of the array
Cast the input to the appropriate data type.
Slide 5 - Diapositive
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 - Diapositive
Slide 7 - Diapositive
Watch the chapter 6 video(5mins)
Slide 8 - Diapositive
Read chapter 6 and complete activity C. (10 mins)
Slide 9 - Diapositive
Complete activity D.(5 mins)
Slide 10 - Diapositive
Complete the classroom array assignment.
Slide 11 - Diapositive
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 - Diapositive
Cars [0,1]
Slide 13 - Question ouverte
Cars [1,1]
Slide 14 - Question ouverte
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 - Diapositive
What I learned today?
Slide 16 - Carte mentale
Plus de leçons comme celle-ci
Data Structures Array
March 2023
- Leçon avec
38 diapositives
Computer Science
Secondary Education
Mastering Lists in Python
February 2024
- Leçon avec
22 diapositives
Computing
Lower Secondary (Key Stage 3)
Introduction to Pandas in Python
February 2024
- Leçon avec
18 diapositives
Lists in Python
February 2024
- Leçon avec
22 diapositives
Computing
Lower Secondary (Key Stage 3)
Y8 Python _ Extended
June 2022
- Leçon avec
38 diapositives
Computing
Lower Secondary (Key Stage 3)
Year 12 Lists and linked lists
March 2025
- Leçon avec
22 diapositives
Computing
Further Education (Key Stage 5)
Mastering While Loops with Arrays
May 2024
- Leçon avec
13 diapositives
Birch - Scratch Variables
November 2024
- Leçon avec
37 diapositives
Computing
Upper Secondary (Key Stage 4)
GCSE