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:
Option A is the correct choice answer for the above question.
Explanation:
In an MS-Powerpoint document, when a user wants to copy the selected shape and drag that shape for use in slides then he needs to--
- Select the shape
- Press the Ctrl key and
- drag that shape on the slide of the powerpoint.
Then the user gets the shape on the slide for their personal use.
The question scenario also suggests the same which is described above. hence Option A is the correct answer while the other is not because--
- Option B suggests 'ESC' which is used to escape any running program.
- Option C suggests about ALT key which is of no use for the MS-Powerpoint document.
- Option D suggests about TAB key which is used to make the space between two texts or diagram.
They are called servers .. you can also call them hosts
The answer will be
97
98
96
194
Poke hole with thin but strong object
Or buy new sharpener