Answer:
The correct answer to the following question will be "True".
Explanation:
SCADA is a hardware and software elements program that permits industrial enterprises to:
- Agricultural processes are regulated locally or globally.
- The human-machine interaction program specifically interfaces with equipment such as cameras, switches, generators, motors and much more.
- Track, store, and process the data in real-time.
Therefore, the given statement is true.
The correct answer is Boolean logic.
Booleans are true or false statements.
An example of a while loop is:
while 1 < 5:
#do something.
The Boolean statement is 1 < 5 which evaluates to true because 1 is less than 5.
I hope this helps!
Answer:
num = int(input("enter a number:"))
print(num * 8)
Explanation:
num is just a variable could be named anything you want.
if code was like this num = input("enter a number:")
and do a print(num * 8)
we get an error because whatever the user puts in input comes out a string.
we cast int() around our input() function to convert from string to integer.
therefore: num = int(input("enter a number:"))
will allow us to do print(num * 8)
Answer:
public class Triangle
{
public static void main( String[] args )
{
show( 5 );
}
public static void show( int n )
{
int i,j,k;
for (i = 0; i < n - 1; i++ )
{
for (j = 0; j < i; j++ )
{
System.out.print( " " );
}
for (k = n - i; k > 0; k-- )
{
System.out.print( "* " );
}
System.out.println();
}
for (i = 0; i < n; i++ )
{
for (j = n - i; j > 1; j-- )
{
System.out.print( " " );
}
for (k = 0; k < i + 1; k++ )
{
System.out.print( "* " );
}
System.out.println();
}