Ragerunner
Your friendly HSC guide
Post your thoughts here
Originally posted by honky tonk
I said it was in line 4.
The variable name is called Switched_on but is not declared anywhere, so I assumed it would autmatically be false.. with that, I said that the loop would never be entered.
Dunno if it's right..
i put this too. my reasoning was because when it is passed as a parameter between modules, there is no space, hence when the WHILE loop is intitiated the second time, the customernumber will not be reset. although the other error (line 4) seems better.....Is it the Customer Number = 0 ?
I did something similar. Put "Read cardslot" in line 12.5 after "cardinslot = true". Other wise if the person put a card in after "Read carslot" was executed, the loop would end without the card being read. Thats how i understood it not sure though...Originally posted by Fiona
Oh crap.
I thought it was later on when the thing checked to see if the card was there, and then after the IF thing to see if there was a card, there was instructions for what to do.
I thought the error was that in even if there was no card, it was doing the instructions for if there was a card eg. checking the password and stuff.
Hmm...
I noticed that too but i didn't talk about it as incase i was wrong.Originally posted by mattyb
what about the argument count mismatch in the subroutines? the algorithm had parameters that were outputs which doesnt happen in subroutines, unless its a function then has one output only.