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: Nooo! Dont!
Explanation:That is a bad idea!
Answer:
1. Do not copyright
2. Nothing illegal
3.Do not put personal info
Explanation:
Auto-completion
Location
She could also browse in an incognito tab, but I don't think that level of detail and browser specific answer is what the instructor is going for.