Answer:
Explanation:
The following code is written in Java. It is a method that calculates the square root of a number as requested. The method first checks with an IF statement if the parameter value is a positive number and then calculates the square root and prints it to the screen. Otherwise, it prints Number must not be negative. A test case has been provided in the main method and the output can be seen in the attached image below.
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Enter a number of type double to calculate square root:");
double num = in.nextDouble();
rootPositive(num);
}
public static void rootPositive(double num) {
if (num > 0) {
System.out.println(Math.sqrt(num));
} else {
System.out.println("Number must not be negative.");
}
}
}
Answer:
yes you are probably on a school Chromebook
Explanation:
Answer: without satellites there would be no way for the world to communicate
Explanation:
If you want to set the sticky bit on an existing directory, subdir, without otherwise altering its permissions. to do so, you should type chmod a <u>t <subdir>.</u>
<h3>What is
Subdir?</h3>
The Definition of the term subdirectory is known to be a kind of an organizational directory that can be seen on a computer.
It is known to be one that can be found inside another directory such as a subfolder. It is seen as the file a person is looking for and it is one that needs to have an extension.
Therefore, if you want to set the sticky bit on an existing directory, subdir, without otherwise altering its permissions. to do so, you should type chmod a <u>t <subdir>.</u>
Learn more about directory from
brainly.com/question/14845522
#SPJ1
See full question below
You want to set the sticky bit on an existing directory, subdir, without otherwise altering its permissions. To do so, you should type:
chmod a+_____ <subdir>
- s
- p
- b
- t