Search Header Logo
PROGRAMMING-ARRAY

PROGRAMMING-ARRAY

Assessment

Presentation

Computers

12th Grade

Hard

Created by

Jeffmark Pinaredondo

Used 1+ times

FREE Resource

16 Slides • 10 Questions

1

PROGRAMMING-ARRAYS

June 18, 2021

Slide image

2

CHECKING OF ATTENDANCE

Please comment down your FULL NAME in the chat box and Open your camera to verify it's you who's typing.

3

NETIQUETTE

  • Please use the RAISE HAND buttong or chat box if you want to speak

  • Turn off your microphone when your not talking

  • Turn on your camera if possible and asked to

  • Do not share or present your screen

  • Listen and respect to whoever is talking

  • Do not post or share a screenshot in your social media account without asking the permission of your classmates for Data privacy

4

Reminders

  • All Digital copy of your modules and learning materials is already available in the google classroom

  • For security and safe keeping purposes, your worksheets, outputs and assignment must be submitted in the google classroom

  • In order to join the classroom, please use your deped google account and microsoft office 365 account

5

Open Ended

How are you feeling today?

6

What do you expect in this lesson today?

LESSON: ARRAYS in JAVA PROGRAMMING




COMPETENCY: PERFORMING OBJECT-ORIENTED ANALYSIS AND DESIGN (POAD)

7

At the end of the lesson, learners are expected to:

  • 1.     Create executable Java applications in accordance with Java framework

    2.     Import Java packages to make them accessible in the code

    3.     Demonstrate working with Java Data Types in accordance with Java framework

    4.     Demonstrate using Operators and Decision Constructs in accordance with Java framework.

    Demonstrate creating and using Arrays in accordance with Java framework

8

Learning Task #1: (Time allotted: 3 minutes)

The learners will be given 5 minutes to provide their answer in the activity shown in the padlet.com. They should provide their answers in the columns by clicking in the plus sign button and include their names and answers. 


Visit the: https://padlet.com/jeffmarkpinaredondo/9nhadmdkql0gmgay

9

LESSON OBJECTIVES

  • Be able to use the syntax and operators

  • Understand the decision constructors

  • Familiarize the java structure

  • Use the syntax of array in a program

  • Basic Computer Operations

10

Computer operation skills include but not limited to the following:

  •  Opening & closing of PC

  •  Troubleshoot & repair,

  • Typing & encoding,

     Install and configuring a PC.

  • Use the syntax of array in a program

11

Java Structure (Framework) should include:

/import

public class Main

{

           public static void main(String[] args) {

                       System.out.println("Hello World");

           }

}

12

Learning Task# 2 (Time allotted: 3 minutes)

There will be a game entitled “Find the Lie” the idea was based on the 2 truths and a lie. The content of the game is all about data types, variable naming convention and syntax operators

13

Multiple Choice

Find the LIE

1

Char uses single quotes

2

Char focuses on text

3

Char can hold a word as a value

14

Multiple Choice

Find the LIE

1

Boolean expects two possibilities

2

String allows single character using pair of single quotes

3

Int includes 0-9

15

Multiple Choice

Find the LIE

1

Variable name begins with numbers

2

Variable name allowed underscore

3

Variable a is different from variable A

16

Multiple Choice

Find the LIE

1

A dollar sign can be use in variable name declaration

2

Java syntaxes can be use to create as variable name

3

Using space in between variable name is forbidden

17

Multiple Choice

Find the LIE

1

= and == are two different operators

2

+= can be an assignment or relational operator

3

|| is a unitary operator

18

Multiple Choice

Find the LIE

1

< > means not equal to

2

+ + means add up 1 value

3

% operator looks for a remainder

19

Data types

  • Int – an integer is a numeric variable without a decimal. Are whole numbers and can be positive, negative or zero, such as: 0, 2, 33, -199 

  • Char – A character data type is used to store a single alphanumeric character. Where a character can be any letter, number or symbol that can be typed.

    ex: 'a','b','c'

  • String – A string is more useful that the character data type as it can hold a list of characters of any length. Therefore if can represent alphanumeric data and symbols. A string can be null (empty), just one character or many characters.

    ex: "a","b","c"

20

Data types

  • Float - for decimal places up to 7 digits . Such as: 1.26, -7.8, 3.14

  • Double -for decimal places up to 15 digits 

  • Boolean - A Boolean data type can only represent two values: True or False

21

Variable naming convention:

  • Keywords, modifiers, and constructs cannot be use to create a variable name

  • If the name you choose consists of only one word, spell that word in all lowercase letters. If it consists of more than one word, capitalize the first letter of each subsequent word.

  • Never use space or any other special character when creating a variable name

  • Variable name is case sensitive a is different from A.

  • A variable name can be a combination of letter, numbers. Underscore (_) and dollar sign ($).

  • Use letter or underscore only in beginning to name a variable

22

Syntax Operators 

  • Assignment operator (=, ==, &)

  • Relational operator (==,>, <, !=, >=, <=)

  • Arithmetic operator ( + , - , / , *)

  • Modulo operator ( %)

  • Logical operator (!, ||, &&)

  •  Unary operator (++ , --)

23

Learning Task #3 Decision constructs  (Time allotted: 3 minutes)

Find the syntax error in the program and complete the program by filling in the missing syntaxes. This task is all about conditional structures which includes If, if else if, nested if, switch case, and nested switch.

24

Fill in the Blanks

Type answer...

25

Fill in the Blanks

Type answer...

26

Fill in the Blanks

Type answer...

PROGRAMMING-ARRAYS

June 18, 2021

Slide image

Show answer

Auto Play

Slide 1 / 26

SLIDE