
10C Arrays
Presentation
•
Computers
•
10th Grade
•
Easy
Roy Duguid
Used 16+ times
FREE Resource
34 Slides • 7 Questions
1
Do Now
1. Log in
go to paper 1 programming
go to arrays 2
complete Do Now
2
Do Now answers
3
Big Question:
How can arrays be used to store and manipulate data?
How are elements stored and accessed in a one-dimensional array?
What are the benefits of using arrays for storing multiple elements?
How are two-dimensional arrays structured and utilized?
Key words: array, element, index, One-dimensional array, Multi-dimensional array
4
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
5
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
0
1
2
3
4
5
6
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
0
1
2
3
4
5
7
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
"Eva"
0
1
2
3
4
5
6
8
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
"Eva"
0
1
2
3
4
5
6
9
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
"Eva"
0
1
2
3
4
5
6
10
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Deniz",
"Donny"
"Eva"
0
1
2
3
4
5
6
11
Making a 1D list
"Alexandra"
"Amir",
"Ana",
"Daria",
"Donny"
"Eva"
0
1
2
3
4
5
12
Knowledge organiser
13
Questions ahead...
14
Multiple Choice
What term is used to describe an individual position of an element in an array?
Index
Pointer
Variable
List
15
Fill in the Blanks
16
Multiple Choice
friends = ["Bob", "Sally", "Jane"]
print(friends[?])
I want to add “Tim” to the list, what do I do?
Append.friends(pop[“Tim’])
append.friends(“Tim”)
friends.append(“Tim”)
17
Multiple Choice
The following array is created in a program: " DIREWOLVES = ["Nymeria","Shaggy Dog","Ghost","Lady","Grey Wind","Summer"]
What is the item stored in DIREWOLVES [2] ?
"Shaggy Dog"
"Ghost"
18
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
19
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
20
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
21
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
array = [ [x, x, x] ,
[x, x, x] ,
[x, x, x] ]
22
Turn and talk
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
23
Turn and talk
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
15
24
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
30
25
| | | |
|---|---|---|---|
Fanta | 10 | 11 | 12 |
Making a 2D list
0
1
2
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
3
26
| | | |
|---|---|---|---|
Fanta | 10 | 11 | 12 |
Making a 2D list
0
1
2
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
3
27
| | | |
|---|---|---|---|
Fanta | 10 | 11 | 12 |
Making a 2D list
0
1
2
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
3
28
| | | |
|---|---|---|---|
Fanta | 10 | 11 | 12 |
Making a 2D list
0
1
2
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
3
29
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 18 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
30
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 20 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
31
Making a 2D list
| May | June | July |
|---|---|---|---|
Coca-cola | 25 | 20 | 15 |
Pepsi | 21 | 20 | 17 |
Irn-Bru | 19 | 24 | 30 |
0
1
2
0
1
2
32
Questions ahead...
33
Multiple Choice
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
What data is held in stored in CUSTOMER [0] [2]?
1004
Smith
Amrit
1003
34
Multiple Choice
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
Where in the array is the data item "Kahn" stored?
(2,3)
(4,1)
(2,2)
(3,3)
35
Multiple Choice
A program contains a 2D array ("CUSTOMER") storing customer numbers, first names and surnames
What data is held in stored in CUSTOMER (2,0)?
Amrit
Kahn
Taylor
1003
36
37
38
39
40
41
Go to class notebook
Complete Activity 1
Do Now
1. Log in
go to paper 1 programming
go to arrays 2
complete Do Now
Show answer
Auto Play
Slide 1 / 41
SLIDE
Similar Resources on Wayground
34 questions
Electron Configuration and Valence Electrons
Presentation
•
10th Grade
34 questions
Osmosis and Types of Solutions
Presentation
•
10th Grade
39 questions
Building Historical Connections
Presentation
•
10th Grade
33 questions
Usługi gastronomiczne i cateringowe
Presentation
•
KG
40 questions
3.1 Pairs of Lines & Angles & 3.2 Parallel Lines & Transversals
Presentation
•
10th Grade
35 questions
Listy w Pythonie
Presentation
•
10th - 11th Grade
38 questions
Validation
Presentation
•
9th - 10th Grade
36 questions
Modern Language Association (MLA)
Presentation
•
9th - 10th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade