Programming Project:
Complete the NetBeans project named HW10, which was
started in class on 11/11. This project must include a main
class named Methods, which defines the following
methods:
-
A method named sqrt(), which is similar to the Python
function that you implemented earlier in this course. This
method must accept a single double argument,
and return the square root of that value
(also as a double type).
-
A method named isSorted(), which must accept an
array of int components as its only argument. This
method must return the boolean value true
if the array components are all in (normal) sorted order),
and false otherwise.
-
A method named clone(), which must accept an
array of int components as its only argument. This
method must return an identical copy of the input array.
The main() method of this class must perform at least
one test on each of these methods. This implies that it must
create test data as necessary.