Here you go,
import java.util.Scanner;
import java.util.Random;
public class OrderCalculator{
public static void main(String[] args){
float x, y, z, semi, area;
Scanner in = new Scanner(System.in);
System.out.print("Enter the 3 sides: ");
x = in.nextFloat();
y = in.nextFloat();
z = in.nextFloat();
semi = (float) ((x + y + z) / 2.0);
area = (float) Math.sqrt(semi * (semi - x) * (semi - y) * (semi - z));
System.out.printf("The area is: %.3f\n", area);
}
}
Answer:
C. Resistor
Explanation:
A discrete component can be defined as any electronic component that are built as an individual or single unit.
Basically, a discrete component comprises of a single circuitry element, either an active element such as a vacuum tube, transistor etc or a passive element such as a resistor, diode, capacitor, inductor etc.
Hence, a discrete component is different from an integrated circuit (IC) or hybrid circuits because it is typically constructed or built with a single circuit element while integrated or hybrid circuits are constructed as a multiple unit.
Additionally, most discrete component are mainly semiconductors and as such consume large amounts of current.
Answer:
Ronald missed the words: One-time password, Secure
Explanation:
Whenever we use public computer, there are possibilities to steal the user data by hackers. It might not be safe to use as like we have protection in personal or Office computers. But when a situation arises to use a public system, it is always recommended to use one-time password so that the logins are not misused thereafter.
Even if the hackers try to misuse, the user will get a message / authentication reply to use the login and thus we are safe. Also, always browse only secured website ie. “https”.
Answer:
def recursive_func():
x = input("Are we there yet?")
if x.casefold() == 'Yes'.casefold():
return
else:
recursive_func()
recursive_func()
Explanation:
We define the required function as recursive_func().
The first line takes user input. The user input is stored in variable x.
The next line compares the user input to a string yes. The function executes the else block if the condition isn't met, that is a recursive call is executed.
IF condition returns the function. The string in variable X is compared to a string 'Yes'. the casefold() is a string function that ignores the upper/lower cases when comparing two strings. (This is important because a string 'yes' is not the same yes a string 'Yes' or 'YES'. Two equal strings means their cases and length should match).