Click to reopen instructions.

More practice writing methods that compute things with numbers. As always, write your methods in the editor to the left and hit the button above the editor to run the tests. Click a button in the test panel to see the specification for each method.

Pay attention to the types! Each specification says whether the arguments and return value are ints or doubles (or, in one case, a boolean). Remember that dividing one int by another throws away the fractional part, so when a method takes ints but needs to return a double you may need to be careful about how you divide. And remember you can use Math.sqrt, Math.pow, and Math.PI.

Pro tip: when you click one of the method buttons, the name of the method is copied to your clipboard so you can paste it into your code, saving typing and avoiding spelling errors.

Put definitions here.

Revisions:

Test results show up here.

Errors