Translate

Sunday, September 22, 2013

Widgets

More Pseudocode!

lass EightBall


    main()


       // Declarations

       

        num LIMIT = 8

        num index

        string question

        string answer[LIMIT]: “Unlikely”,

           “Don’t get your hopes up”,

           “Very Likely!”,

           “Maybe”,

           “Remains to be seen”,

           “YES!”,

           “Close, but no cigar!”,

           “Quite Possibly”


      input question


index = random[LIMIT]

output = answer[index]


          return

endClass