Make sure your code works correctly and once you are ready to turn it in you must make sure that you have comments. Java provides a collection of preprogrammed mathematical methods in class Math. The class includes such useful methods as Math.cos and Math.sin which calculate the cosine and sine of a variable inradians, Math.pow which raises the value to a power, and Math.sqrt which takes the sqaure root of a floating-point value. These are value-returning methods andare executed by using their names in an expression. The values in the parentheses to the right of the method names are called parameters .
Parameters are values that the methods use as input.
You can write your own value-returning methods as well. Make sure you understand the use of all these methods.