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:
thanks for whatever you just said!! <3
Explanation:
<span>A splash-type lubrication system uses what the Technician A says : that the engine uses a dipper that's attached to the connecting rod to splash oil from the crankcase onto its components. </span>In the engine, dippers on the connecting-rod bearing caps enter the oil pan with each revolution to produce the oil splash. A passage is drilled in each rod from the dipper to the bearing to <span>ensure lubrication.</span>
Answer:
D
Explanation:
In the lab, the Ethernet II detail of the provided packet capture file indicated that Wireshark had determined that the type of traffic carried in the next layer was Internet Protocol (IP).