Problem 1. (Euclidean Distance) Implement a program Distance that computes and prints the Euclidean distance between two vectors x and y represented as one-dimensional arrays of double values. The distance is calculated as the square root of the sums of the squares of the diļ¬erences between corresponding entries. Your code should work for vectors of any length.

$ java Distance

13.0

Problem 2. (Reversing an Array) Implement a program Reverse that reverses a one dimensional array a of String values and prints the reversed array. Do not create another array to hold the result. Hint: Use the code in the text for exchanging two elements.

$ java Reverse

question

the

is

that

,

be

to

not

or

,

be

to

**Subject Computer Science Java Programming**