You are on page 1of 1

Chapter 6

JAVA OPERATORS

ASSESSMENT# 6
Application
Instruction:
Create a single program in each number and display the expected
screen outputs.

1. Arithmetic Operators:
Create a program that outputs the average of three numbers.

X=5
Y = 10
Z = 15
Average is = 10

2. Relational Operators:
Create a program that outputs the following using “x as 5” and “y as 10”.

True (using greater than operator)


False (using equal operator)
True (using not equal operator)
True (using less than or equal operator)

3. Logical Operators:
In a sentence form explain the process of the following Truth tables;
a) Logical AND Truth table
b) Logical OR Truth table
c) Logical NOT Truth table

4. Conditional Operators:
Create a program that will display “Passed” if the grade is 75 and above
otherwise “Failed”.

60 points HERLAINE JANE D. CORTADO


PSU QUEZON CAMPUS INSTRUCTOR

SUBMISSION:
The submission of outputs is in Google Classroom, it’s either in picture
format or file format (word). Don’t forget to click “MARK AS DONE” after
sending your output.

DEADLINE: January 11, 2021

Note: if you have concerns or clarifications don’t hesitate to ask sa GC natin.

You might also like