Answer:
numInsects = 16
while numInsects < 200:
print(str(numInsects) + " ", end="")
numInsects *= 2
Explanation:
*The code is in Python.
Set the numInsects as 16
Create a while loop that iterates while numInsects is smaller than 200. Inside the loop, print the value of numInsects followed by a space. Then, multiply the numInsects by 2.
What are we supposed to find? Help us
Answer:
import java.util.Scanner;
public class Speed{
int speed;
public Speed(int speed){
this.speed = speed;
}
public void checkSpeed(){
if(speed >= 24 || speed <= 56){
System.out.println("Speed is normal");
}
else
System.out.println("Speed is abnormal");
}
public static void main(String...args){
Scanner input = new Scanner(System.in);
int userSpeed = 0;
System.out.println("Enter a speed: ");
userSpeed = input.nextInt();
Speed obj1 = new Speed(userSpeed)
obj1.checkSpeed();
}
Explanation:
Answer: *use the last column for text with multiple lines.
*use an indent marker to indent the first line of a paragraph.
*use a table if text in multiple columns have multiple lines.
Explanation:
Answer:
A AND B= 1 or 0
1 1 1
0 1 0
1 0 0
0 0 0
So, as explained above if both are 1 we then only get 1, or else we get 0 always in case of AND which is a logical operator, whose output can be 0 or 1 only. This is being depicted above.
Explanation:
If both are 1 we get 1 or always else, we get the output =0.