
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 Blank
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
42 questions
All About Venn Diagrams
Presentation
•
10th Grade
40 questions
Cold War and Red Scare
Presentation
•
10th Grade
36 questions
Python. Символьные строки. Срезы.
Presentation
•
10th Grade
34 questions
World War II: The Homefront
Presentation
•
10th - 11th Grade
35 questions
[igCS] Database - Intro, Structure and Data types
Presentation
•
9th - 10th Grade
34 questions
Populations: Crater Lions
Presentation
•
10th Grade
38 questions
Q3 REVIEW
Presentation
•
10th Grade
36 questions
Chopin, "Story of an Hour"
Presentation
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
•
5th Grade
10 questions
Fire Drill
Quiz
•
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
22 questions
School Wide Vocab Group 1 Master
Quiz
•
6th - 8th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
12 questions
What makes Nebraska's government unique?
Quiz
•
4th - 5th Grade