The keywords used in programming languages that use decisions to redirect the flow of a program are called control structures.
The answer is C.wind machines only generate electricity when wind is blowing
Answer:
I will code in JAVA.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
boolean tallEnough;
boolean oldEnough;
Scanner input = new Scanner(System.in);
tallEnough = input.nextBoolean();<em> //wait the input for tallEnough</em>
oldEnough = input.nextBoolean(); <em>//wait the input for OldEnough</em>
if(tallEnough && oldEnough){
System.out.print(true);
} else {
System.out.print(false);
}
}
}
Explanation:
First, to accept user inputs you have to import the class Scanner. Then declare both variables before allowing the user to set input values for both boolean variables.
In the if-else statement checks if both variables are true, then prints true. Another case prints always false.
Answer:
Output device.
Explanation:
An output device can be defined as a hardware device that typically receives processed data from the central processing unit (CPU) and converts these data into information that can be used by the end user of a computer system.
All of the output device of a computer are known as peripheral devices and they provide data (informations) to the end users in various formats such as video, audio, texts, images etc.
Since output devices are peripheral devices, they can be connected to the computer system wirelessly or through a wired-connection (cable).
Some examples of output devices are monitor, speakers, printer, projector etc.
Hence, when you hear music, read a printout, or view a video, you are using a computer's output device.