Need help on my HW
Write a simple Java application which calculates the area of a triangle. Your application should ask the user to enter the base and height values of the triangle. You must use the JOptionPane class to collect the user’s input. The base and height values should be treated as floating point values. Calculate the area of triangle: area = 0.5 * base * height. You must use System.out to output the result to the console. Your output must show three digits after the decimal point. Make sure you remember to import what your program will use.