Section 9.9 Write a function for the following

Write function distance that calculates the distance between two points (x1, y1) and (x2, y2). All numbers and return values should be floating-point values. Incorporate this function into a script that enables the user to enter the coordinates of the points through an XHTML form.



Enter point one: x1: y1:
Enterpoint two: x12: y2: