CSCI 107 Assignment 5


Problem: Magic 8 Ball 🎱

For this lab, you will build a 20 sided magic 8-ball. If you are curious about all the choices, you can read up more on them here.

A standard Magic 8 Ball has twenty possible answers, including ten affirmative answers (🟢), five non-committal answers (🟠), and five negative answers (🔴).

Since we can't have our user physically shake a magic 8-ball, we will ask them to enter a random number from 1-20 to represent a shake. The answers should line up with the numbers 1-20 following the order they're listed in above.

We will assume that our user can't access this page to try to cheat when using the magic 8-ball program.

Learning Outcomes

Assignment

Grading - 100 Points

Program Testing

Make sure your program works with all of the twenty possible answers listed in the problem above.