Engineering
write a method that takes 2 coordinates in a 2d plane (x, y coordinates) and computes the distance between these two points, according to the distance formula, which is as follows: distance formula this method must be named distance() and it must have 4 int parameters. the first parameter will be the x-coordinate of the first point, the second parameter will be the y-coordinate of the first point, the third parameter will be the x-coordinate of the second point, and the fourth parameter will be the y-coordinate of the second point. this method must return a double. calling distance(0, 5, 0, 0) would return 5.0. you can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method before checking your code for a score.