
![[iGCS] Array](https://cf.quizizz.com/img/presentation/default-img/presentation_title_img-3_people.jpg?w=200&h=200)
[iGCS] Array
Presentation
•
Computers
•
9th Grade
•
Practice Problem
•
Easy
Andy tsui
Used 15+ times
FREE Resource
10 Slides • 4 Questions
1
[iGCS] Array

2
Objectives
What is array and the terminology related
Array in pseudocode
Array in Python
3
Imagine you need to have a health monitor program
Enter name of the user
Enter body temperature in day 1
Enter body temperature in day 2
4
Open Ended
Write Pseudocode for the application mentioned before!
5
Same application, but 14 days...
The data need to be stored (for future use)
And maybe longer than 14 days....
For loop can help
6
So if we use for loop, it should be something like:
FOR i <- 1 TO 14:
⠀INPUT day-i
NEXT i
Since the day-i is repeating, but can we do that?
7
Array
Array is a collection of variable
All of them are same data type
And similar kind of data
8
Declare array
# Both of the followings will declare an array of n elements
DECLARE temperatures[0..n-1]
DECLARE temperatures[1..n]
Note:
Array size, or number of element, is fixed once it is declared
9
Fill in the Blanks
Type answer...
10
Accessing the array elements
We use [square brackets] to indiciate which element we are accessing:
DECLARE temperatrues[0..13]
temperatures[0] = 37.5
# So the above example, we called "0" is the index of the first element of the array
11
A few key terms:
index: the location of an item in an array. In Python index starts from 0
size: how many items in the array, array size is fixed
element: each item in the array
12
Open Ended
Write the Pseudocode to declare an array of "scores", which consisted of 24 elements.
13
Open Ended
DECLARE scores[0..23]
Write the Pseudocode to assign 100 to first score.
14
Python array Practice
Declare an array for 14 temperatures (float) data
Write a for-loop to enter those temperatures data, with proper prompt
Write another for-loop to calculate the average of those inputted temperature
[iGCS] Array

Show answer
Auto Play
Slide 1 / 14
SLIDE
Similar Resources on Wayground
10 questions
Coding in Kindergarten 2023
Presentation
•
KG
10 questions
Atomic Structure
Presentation
•
9th Grade
10 questions
non- mendelian inheritance
Presentation
•
9th Grade
10 questions
Roman Catholic Church Middle Ages
Presentation
•
9th Grade
9 questions
Solving Systems: Substitution and Simple Elimination
Presentation
•
9th Grade
11 questions
Realidades 2A Reflexive Verbs
Presentation
•
9th Grade
11 questions
Christianity in the Roman Empire
Presentation
•
9th Grade
11 questions
Lesson: Solve Systems by Graphing
Presentation
•
9th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade