For this lab, you will be building the functionality for a digital magic 8 ball.
For this lab, you will be expected to complete the following methods:
- decidePolarity(int magicNum)
- positiveAnswer(int magicNum)
- negativeAnswer(int magicNum)
- neutralAnswer(int magicNum)
For instructions on completing these methods, see the Javadoc.
Make sure to test your work. Some of the methods are tested for you in main, but be sure to add your own tests! For this lab, running main will allow you to run go(), which should call your methods. However, because go() uses a random generator, it is recommended that you write additional tests with known numbers. Make sure to test the edge cases!
Once you're done writing and testing the methods, go ahead and submit your zip file containing your code to Canvas!