Very Exciting Intro To Java Not-A-Quiz (Chapters 1--3)

1. In a Java application, write a method distance which takes four floating point numbers, x1, y1, x2, and y2 which represent two points. It returns the distance between (x1, y1) and (x2, y2).

Note very carefully the example usage. You are writing a function that returns a number. You are not writing a function that prints anything.

System.out.println(distance(1.0,2.0,-4.0,14.0));  // prints 13.0

2. Create an applet or JFrame which has the following properties: