It would be better if we could see the options, fully. But from what I can see, it should be B.
Answer:
Explanation:
The following code is written in Java. It creates the Bug class with the position and direction variables. Then it creates a constructor, move method, turn method, and getPosition method. Finally, a bug object called bugsy is created in the main method, and we move it once to the right, then again to the right, and then we turn it and move it 5 times to the left, printing out the position when it is done moving. Output can be seen in the attached picture below.
class Brainly {
public static void main(String[] args) {
Bug bugsy = new Bug(10);
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.turn();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
}
}
class Bug {
char direction = 'r';
int position = 0;
public Bug(int initialPosition) {
this.position = initialPosition;
}
public void turn() {
if (this.direction == 'r') {
this.direction = 'l';
} else {
this.direction = 'r';
}
}
public void move() {
if (this.direction == 'r') {
this.position += 1;
} else {
this.position -= 1;
}
}
public int getPosition() {
return this.position;
}
}
Answer:
The correct answer to the following question will be option C.
172.16.80.1-172.16.87.254
Explanation:
IP Address: IP Address stands for Internet Protocol Address, a unique numerical label allotted to every computer network that are connected to the network of the computer and communicate through the internet protocol.
- An IP address can be separated by periods and having four numbers that are called Octet. Range of IP address can be from 0 to 255.
- We have to keep the first 21 bits and start setting all from the 22nd bit on to 0 (zero).
- To get the suitable and the correct range of the address, we add and subtract 1 from the given broadcast address i.e.,172.16.85.0/21.
So, option C is the right answer and no other option is usable according to the given explanation and the address given by the administrator.
the answer is D Voice commands
Answer:
The correct answer is
Working with technology companies to offer computing devices at discounted prices to individuals with reduced incomes
Explanation:
As per the question, state government is trying to reduce the digital divide which primarily exists because low income people do not have access to the digital devices. Hence, any step taken to help the low income people to get the digital device will be the best strategy of government to reduce the digital divide.
Thus, the correct answer is Working with technology companies to offer computing devices at discounted prices to individuals with reduced incomes