Skip to content

CSU-CompSci-CS163-4/Lab03Magic8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Lab03 Magic 8

For this lab, you will be building the functionality for a digital magic 8 ball.

Step 1 -- Writing the Methods

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.

Step 2 -- Testing

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!

Step 3 -- Turning It In

Once you're done writing and testing the methods, go ahead and submit your zip file containing your code to Canvas!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages