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

Most Popular Blog Posts!