Im in an intro to
java programming course and we're doing a project in Bluej where we need to use automated
testing to run our code. The test code is given and cannot be changed, and we have to write code and run the tests successfully. Mine is all running smoothly except for this last part. Here is a snippet from the test code:
And here is the method I wrote for it. It compiles but when I run it through the test I get a failed error that says "expected:<160> but was:<180>" I thought I had the formula correct but I guess not.
I'm not sure what I'm doing wrong here. Any insight would be awesome. Thanks in advance!