(Solved):
\( 2.18 * * \) zyLab: Distance formula Map/GPS applications commonly compute the distance between ...
\( 2.18 * * \) zyLab: Distance formula Map/GPS applications commonly compute the distance between two points. A point may be a coordinate on an x-y plane like (1.5, 2.0). The distance formula (Pythagorean's Theorem) is: \[ d=\sqrt{ }\left((x 2-x 1)^{2}+(y 2-y 1)^{2}\right) \] Given two points as input (i.e. \( x 1 \) y \( 1 \times 2 \) y2), output the distance between them. For example, if the input is: \[ 1.52 .04 .56 .0 \] (translated as \( (1.5,2.0) \) and \( (4.5,6.0) \) ), then the output is: \[ 5.0 \] Hints: - Make sure you're matching up your inputs correctly (both name and type) - Use methods from java.lang.Math class to do the calculation \( 421458.2955768 . q \times 3 z 0 y 7 \) \begin{tabular}{|l|l} LAB & 2.18.1:*k ZyLab: Distance formula \\ ACTIVITY & \end{tabular} Main.java Load default template... 1 import java.util.Scanner; public class Main \{ public static void main(String[] args) \{ Scanner scnr = new Scanner (System.in); * Type your code here. */ \}