Computer Science Canada

Need help in my application (Varible has no values)

Author:  Rembokz [ Sun Jan 15, 2012 2:40 pm ]
Post subject:  Need help in my application (Varible has no values)

What is the problem you are having?
I get a variable has no values error


Describe what you have tried to solve this problem
Tried making loops but nada, if anyone can fix this or tell me the solution, please do!

if tickets = 2 then <--- that's where my error comes.


Please specify what version of Turing you are using
Turing 4.1.1

Author:  Aange10 [ Sun Jan 15, 2012 2:57 pm ]
Post subject:  RE:Need help in my application (Varible has no values)

Just read the error. "Variable has no value".


It means that the variable has no value.


How do we fix it? Assign the variable a value.

Author:  Rembokz [ Sun Jan 15, 2012 3:04 pm ]
Post subject:  Re: RE:Need help in my application (Varible has no values)

Aange10 @ Sun Jan 15, 2012 2:57 pm wrote:
Just read the error. "Variable has no value".


It means that the variable has no value.


How do we fix it? Assign the variable a value.

I try that.

Author:  Aange10 [ Sun Jan 15, 2012 3:08 pm ]
Post subject:  RE:Need help in my application (Varible has no values)

That fixes it. Try it again.

It should look like

Turing:

    tickets := 0


after you declare it.


: