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:
Hello your question is not complete, The complete question is ; <em>what is the Limitation of representing numbers with fixed point representation</em>
answer: Limited range of values that can be represented
Explanation:
The limitation of representing numbers with fixed point representation is that there is a Limited range of values that can be represented using this method of representation
Fixed point representation is a type of representation whereby there is a fixed number of bits for both integer parts and fractional part.
The difference between a calculator and a computer is that when a calculator performs computations it is slower but needs more human assistance - C.
While a computer on the other hand, computes tens of thousands of computations without any human input, all done automatically.
Answer:
Boolean
Explanation:
If statement condition always returns true or false,which is a boolean data type.
X is true or false
it maybe a variable or an expression.
Answer:
Honestly self driving cars are the future of humans and it can and will help us evolve. It could possibly be more dangerous if someone messed up the coding and it can be hacked by almost anyone with coding abilities, so it all depends on how safe you think you will be not driving yourself anywhere. Overall it could go both ways( good or bad.)
Hope this helped
Explanation: