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

ICT 10 Lesson 7_2 - Students Copy

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

ICT 10 Lesson 7_2 - Students Copy

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

GRADE 10 – ICT TECHNO MOBILE

LESSON 7.2: JAVA PROGRAMMING PART 1: OVERVIEW AND INTRODUCTION

Exploring basic java coding through Java compiler applications

Java syntax can be complicated, but you just need to be mindful in working on its specifically for the following:

a. Syntax - refers to the rules that define the combinations of symbols, keywords, and punctuation that are
considered to be correctly structured programs in Java programming language. Syntax errors occur when
these rules are violated.
b. Data types - refer to the classification of data items based on the kind of values they can hold and the
operations that can be performed on them. Java has two categories of data types: primitive data types (such
as int, float, char, etc.) and reference data types (such as classes, arrays, interfaces, etc.).
c. Variables - are named storage locations used to store data temporarily during program execution. Each
variable has a data type that determines the type of data it can store, and a name that uniquely identifies it
within its scope. Variables can be assigned values, which can be changed during program execution.
d. Operators- are special symbols or keywords that are used to perform operations on operands. They allow you
to manipulate variables and values in your program. Java supports a variety of operators, including
arithmetic operators (+, -, *, /, %), relational operators (>, <, >=, <=, ==, !=), logical operators (&&, ||, !), etc.

Learning Task 7C: Go to the java online compiler


https://www.programiz.com/java-programming/online compiler/ . Try to input the Java program syntax
below:

Note: Be mindful, this website does not automatically save your progress. Always back-up your syntax, try to use a
notepad or any document application where you can temporarily save your syntax.
3. Try to run the program and check the output.

4. Try to compare in the output below if it the same from your output. To go to the next line press, ENTER
KEY.

5. Screenshot/Print screen your screen then save it as : Lastname.jpg or Lastname.png (use the paint application if
your computer does not support automatic saving). Upload your file to your google classroom ICT 10 – Learning Task
7C.

Assignment: Learning Task 7D

a. Create a simple Java program that will let the user input the following:

- 1st quarter Grade

- 2nd quarter Grade

- 3rd quarter Grade

-4th quarter Grade

b. Display after the AVERAGE of the grades as “ Your Average is __ ! ”

output:

c. Screenshot/Print screen your screen then save it as : Lastname.jpg or Lastname.png (use the paint application if
your computer does not support automatic saving). Upload your file to your google classroom ICT 10 – Learning Task
7D.

Remember: The syntax below is your opening statements to start your Input Out JAVA program.

Remember: The syntax in between the opening and closing statements are your INPUT , PROCESS and OUTPUT
DATA.
INPUT
PROCESS

OUTPUT

Remember: The syntax below is your closing statements to start your Input Out JAVA program.

References:

TECHNOKIDS E-LIBRARY: TECHNOMOBILE (TLIB-TTW-U3-M7)

https://www.javatpoint.com/java-basics

Adopted and prepared by:


Ms. Pinky Paler-Tapel, LPT, MA

G10 – ICT Teacher


TLE/ICT Dept. Subject Team Leader
Our Lady of Peace School
Antipolo Rizal 1870

You might also like