Professional Documents
Culture Documents
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”.
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”.
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.