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.");
}
}
}
The correct option is B.
Chart area is the boundary that contains all the chart and all its elements including the chart titles, legends, plot area, labels, etc.
The legend is the key that identifies the gradient, texture, colour and pattern fill given to each data series.
The chart title is the label that describe the chart while the plot area is the section of the chart that contains graphical representation of the values in a data series.
Whitespace
--------------------------------------------
You'd want to look at the <span>glossary.</span>
Answer:
Written in Python:
hours = int(input("Hours: "))
mins = int(input("Minutes: "))
result = hours * 60 + mins
print("Result: "+str(result)+" minutes")
Explanation:
This line prompts user for hours
hours = int(input("Hours: "))
This line prompts user for minutes
mins = int(input("Minutes: "))
This line calculates the required output
result = hours * 60 + mins
This line prints the required output in minutes
print("Result: "+str(result)+" minutes")