Click to reopen instructions.

This is a test of writing methods. You may need to use the methods from Math that you learned about in this unit. Also for one problem you will need to use the constant C which is defined in the starter code and represents the speed of light in meters per second. Because it’s in the same class as the rest of your code you can refer to it as just C. When possible, you should write your methods in terms of other method you have written here.

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. Finally, click the black triangle at the start of these instructions to collapse them and have more room to code.

Put definitions here.

Revisions:

Test results show up here.

Errors