User Tools

Site Tools


cs175:arrays_lab_-_magic_8-ball

Magic8Ball Simulation


  • Topics: Arrays, Strings

Write a program Magic8Ball.java to do the following:

  • In a loop:
    • Using Scanner, input any question from the user as a String.
    • If the user inputs “quit”, then exit the loop immediately.
    • Output 1 of 20 possible answers at random.

cs175/arrays_lab_-_magic_8-ball.txt · Last modified: 2014/12/04 21:20 by jchung

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki