0% found this document useful (0 votes)
28 views

COMPUTER PROGRAMMING GR 12 Arrays, Variables and Operators

This document is a presentation on arrays, variables, and operators in Java. It aims to help students understand these concepts and apply them. It discusses arrays and how they are used to store multiple values in a single variable. It also covers variables as containers for storing data values and operators as special symbols used to perform operations. Examples are provided and activities included to reinforce the concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

COMPUTER PROGRAMMING GR 12 Arrays, Variables and Operators

This document is a presentation on arrays, variables, and operators in Java. It aims to help students understand these concepts and apply them. It discusses arrays and how they are used to store multiple values in a single variable. It also covers variables as containers for storing data values and operators as special symbols used to perform operations. Examples are provided and activities included to reinforce the concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Arrays, Variables

and Operators
in Java
COMPUTER PROGRAMMING GRADE 12
EXPECTATIONS
The students should be able to:
1. understand the Arrays in Java
2. understand the Variables and Operators
3. applying Arrays, Variables and
Operators

02/21/2023 PRESENTATION TITLE 2


PRETEST

02/21/2023 PRESENTATION TITLE 3


RECAP

02/21/2023 PRESENTATION TITLE 4


LESSON
ARRAYS in JAVA language it is used to store
multiple values in a single variable, instead of
declaring separate variables for each value. In
computer science, an array data structure, or simply
an array, is a data structure consisting of a collection
of elements, each identified by at least one array
index or key. An array is stored such that the position
of each element can be computed from its index
tuple by a mathematical formula.
02/21/2023 PRESENTATION TITLE 5
ARRAY

02/21/2023 PRESENTATION TITLE 6


02/21/2023 PRESENTATION TITLE 7
VARIABLES
VARIABLES are the containers for storing
data values. The declaration of variable
gives a
name and data type for the variable. It
may also ask that a particular value be
place in the
variable.
02/21/2023 PRESENTATION TITLE 8
02/21/2023 PRESENTATION TITLE 9
02/21/2023 PRESENTATION TITLE 10
02/21/2023 PRESENTATION TITLE 11
OPERATORS
OPERATORS these are the special symbols like
addition(+), subtraction(-), multiplication(*),
division(/), modulus(%) use for remainder, increment
( + + ) use to increase, decrement ( - - )
use to decrease. These special symbols are use to
perform specific operation.

02/21/2023 PRESENTATION TITLE 12


02/21/2023 PRESENTATION TITLE 13
02/21/2023 PRESENTATION TITLE 14
02/21/2023 PRESENTATION TITLE 15
ACTIVITIES
Directions: Write True in the space provided if the given
statement is true; otherwise write False.
_______1. Java application program is a compiler.
_______2. Java program is not an open source once.
_______3. The commands in java are not case sensitive.
_______4. Java commands are the same as JavaScript.
_______5. The java basic operators, logical, assignment
and comparison operators are also use in other
programming language.
02/21/2023 PRESENTATION TITLE 16
02/21/2023 PRESENTATION TITLE 17
02/21/2023 PRESENTATION TITLE 18
02/21/2023 PRESENTATION TITLE 19
02/21/2023 PRESENTATION TITLE 20
Thank you
Mirjam Nilsson​
[email protected]
www.contoso.com

You might also like