Answer:
import java.util.Scanner;
public class Solution {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int userNum = scan.nextInt();
if (userNum > 0) {
System.out.println("Positive.");
} else {
System.out.println("Non-positive, converting to 1.");
userNum = 1;
System.out.println("Final: " + userNum);
}
}
}
Explanation:
There was no error found when the code was run. The code segment was just added to a main method and it runs successfully.
Based on the full code above;
The first line import the Scanner class which allow the program to receive user input. Then the class was defined as Solution. Then the main method was defined. Inside the main method, we created a scanner object scan which receive the input via keyboard. The user input is assigned to the variable userNum. Then the if-conditional statement is executed; if userNum is greater than 0, "Positive" is output. Else userNum is converted to 1 and outputted to the screen.
Answer:
Share documents and set specific permissions.
Explanation:
For a computer network with Windows OS Jane and the technician can create a Shared Folder by right-clicking on it and selecting properties.
Then on the Share and Security tabs of the properties, they can set which specific users and/or roles will have access to the shared folder. They will also have to set what permission level will be granted, such as <em>full access, read only, etc.</em>
The managers can access the shared files using <em>Windows explorer</em> either by searching shared folders in their Network, or by typing the shared folder address usually something like \\JANE_PC/SharedFolder.
Answer:
b. (userInput < 10)
Explanation:
The piece of code that will accomplish this would be (userInput < 10). The code will first ask the user to "Enter a number greater than 10:" then it will compare the value of userInput to 10, if it is less than 10 it will redo the loop over and over again until the userInput is greater than 10. Once the userInput is greater than 10 it will break out of the do-while loop and continue whatever code is written under and outside the do-while loop
The right answer is A<span>.Active cell </span>