1
they were crafted in stained-glass art in religious buildings
2
puzzle games
3
motion-capture devices (e.g., Kinect, WiiMote
4
puzzle
simulation
Answer:
The output to the given code as follows:
Output:
10
100
64
36
16
4
0
4
16
36
64
Explanation:
In the given java code, an integer variable "i" and an array number is defined, which size is 10, in the next step two for loop is declared, that can be described as follows:
- In the first loop, array use loop variable "i" use, which minus the value of 5 and multiplies by 2, and it will calculate the square of that number.
- In the next step, a for loop is declared, that prints these array number variable square.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The given compound statement are:
4 < 3 and 5 < 10
4 <3 or 5 < 10
not (5 > 13)
4 < 3 and 5 < 10 this statement is false because "and" logical operator required that both operand (4<3) and (5<10) are true. Statement (4<3) is a false statement so this statement is false. "and" operator becomes true when all its inputs are true otherwise it becomes false.
4 < 3 or 5 < 10 this statement is true because "or" logical operator to be true if one of its input is true and false when all inputs are false. so in this compound statement, the first statement is false and the second statement is true. so this compound statement is true.
not(5>13) this compound statement is true because it has "not" operator and "not" operator makes a false statement to true and vice versa. so (5>13) is a false statement, and when you append "not" operator before it, then this compound statement will become true statement, so this is a true statement.