Computer Science Canada Who Wants To Be A Millionaire! |
Author: | Vexxel [ Tue Jan 24, 2012 6:00 pm ] |
Post subject: | Who Wants To Be A Millionaire! |
What is it you are trying to achieve? I am trying to make the millionaire game consisting of 9 questions. What is the problem you are having? I don't know how to detect that the question #1 is correct and move on to the next one. ( How to advance from 1 -> 2) Describe what you have tried to solve this problem I have tried many things, such as using randint, etc. None of it seemed to work. Please specify what version of Turing you are using 4.11 It would be much appreciated if you guys could help me out today because my culminating is due tomorrow. Thank you very much. |
Author: | Beastinonyou [ Tue Jan 24, 2012 6:52 pm ] | ||
Post subject: | Re: Who Wants To Be A Millionaire! | ||
You should consider managing your time better, or at least try to seek help earlier, rather than later. Basically, You could consider such a task by doing the following:
|
Author: | Vexxel [ Tue Jan 24, 2012 7:04 pm ] |
Post subject: | RE:Who Wants To Be A Millionaire! |
We're not allowed to use arrays. |
Author: | RyGuy-Anime [ Tue Jan 24, 2012 7:32 pm ] |
Post subject: | Re: Who Wants To Be A Millionaire! |
use a whole bunch of ifs then like if answer = a or answer = A then ... that or a data file |
Author: | Beastinonyou [ Tue Jan 24, 2012 8:36 pm ] | ||||||
Post subject: | Re: RE:Who Wants To Be A Millionaire! | ||||||
Vexxel @ Tue Jan 24, 2012 7:04 pm wrote: We're not allowed to use arrays.
so you're superior wishes you to hardcore every variable like so:
or, similarly:
opposed to the more efficient, effective, and line-conserving:
I don't understand why.. maybe they don't want you using something you don't understand how to use. But if you do understand how to use them, why should you be restricted to use this concept? |
Author: | mirhagk [ Wed Jan 25, 2012 12:21 am ] |
Post subject: | RE:Who Wants To Be A Millionaire! |
What school is restricting you from using arrays at the end of the course? What school hasn't taught you arrays by the end of the course? (this assignment at my school is like 1/4 of the way through the grade 10 course) |