ICT 10 Lesson 7_2 - Students Copy
ICT 10 Lesson 7_2 - Students Copy
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.
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.
a. Create a simple Java program that will let the user input the following:
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:
https://www.javatpoint.com/java-basics