Answer:
if(isBalloon== true && isRed==false) //compare the value of isBalloon variable with true value and isRed variable value with false value.
System.out.println("Balloon");//Print Balloon
else if(isBalloon== true && isRed==true) //compare the value of isBalloon variable with true value and isRed variable value with also true value.
System.out.println("Red balloon");//Print Red Balloon
else // when no if condition match it will execute.
System.out.println("Not a balloon"); //Print Not a Balloon
Output:
Not a balloon
Explanation:
The "if-else" statement is defined above for the problem which is given on the question. The detailed explanation of the answer is described below--
- Firstly we need to check the "true" value for the "isBalloon" variable and "false" value for "isRed" variable. This is done in "if" statement separated with and(&&) operator which gives "true" when both are the true statement.
- Then we need to check the "true" value for the "isBalloon" variable and "isRed" variable. For this, we need to use "else if" statement which executes when "if" statement is false.
- Then we need to print the "Not a balloon" statement if both cases are false, for this, we use "else" statement which executes when the "if" and "else if" statement are false.
Answer:
Step1:start
step2: enter the ten number
s3: if the number is divided by 2 then print even number
s4: otherwise print odd number
s5:stop
Answer:
F
Explanation:
false because you don't need a computer software to make a venn diagram you can make one
Answer:
d
Explanation:
The one action listed in the question that would suggest unfair labor practices would be if Hyper-Tech managers prohibited the distribution of union literature in the company cafeteria. This is because a company can prevent employees from partaking in other tasks and getting distracted while on duty. When an employee is on duty they are getting paid to focus and complete their responsibilities. An employer also has the right to prevent non-employee individuals from entering private property such as their facility. What a company cannot do is prevent their employees from deciding what the literature that they want to read or the decisions that they want to make outside of work hours. Therefore, preventing the employees from accepting literature while on their break time would be considered unfair labor practice.