Skip to main content
1 of 2

Millionaire quiz in mathematica

so here's the deal. I'm trying to write a millionare quiz in Mathematica. Now, this has been already done in other coding languages, specifically I've seen it done in C here:

http://tausiq.wordpress.com/2009/10/02/millionaire/

So, the setup is that I just input answers for the questions, then input the correct answers, and the function/program gives me the amount the player has earned. Now, the problem says to include the 1000 and $32000 save points, but it isn't all that necessary.

Now, I want to translate this into Mathematica, but I can't seem to find how this would work. I was thinking of maybe using two lists, one with the answers of the user and the second with the correct answers and to somehow compare them. Can this be done with just the if, switch and for commands?

Can anyone help me with this?