Implement this API. You do not have to include javadoc comments. If you do not know the value of the constant, just choose the value yourself.
package eecs2030.test1; /** * Test 1 for EECS 2030E Lab 1. * * @author EECS2030E * */ public class Test1C { /** * The value 2π */ public static final double TWO_PI = 2.0 * Math.PI; private Test1C() { // empty by design } /** * Returns the circumference of a circle having the given * radius. It is assumed that the radius is greater than * or equal to zero. * * <p> * The circumference of a circle having radius <i>r</i> * is equal to 2π<i>r</i> * * @param radius the radius of the circle * @return the circumference of the circle with the given radius */ public static double circumference(double radius) { return Test1C.TWO_PI * radius; } }
Save your file (it might be easiest to save the file in the same
directory as your Test1C.java
file). Submit your answer
using the following command:
submit 2030 test1C answers.txt