squ34ki
heavenian woohzaa!
Cardslot is set as False
so WHILE NOt cardslot
means while there is a card
so WHILE NOt cardslot
means while there is a card
hmm......i don know..... i think WHILE NOT cardslot means that whilst there isn't a card in the slot. That's the point of READ cardslot being put in a loop - to continually monitor when a card is input.Originally posted by squ34ki
Cardslot is set as False
so WHILE NOt cardslot
means while there is a card
same 'ereOriginally posted by JRasnier
i actually said line 21 was wrong, validated = true, cause i said that the door would always be validated as true as long as it was switched on....
yeh, thats what my friend saidOriginally 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...
dammit. After reading this ton of posts I realise I am wrong and after reading all these posts, yours seems like the most logical response. This is becauseOriginally posted by psycho_mushy
for the Logic error I sayd
WHILE NOT CardInSlot
READ cardslot
I said this coz it says "while the card is not in slot, read slot" it was I'm assuming logic error so I put that down.... I didn't refer to antyhing after it coz it said logic error and that seemed pretty logical to me
NoOriginally posted by mattyb
did you guys ever think that there was no answer? like if it was kinda rhetorical and how u back up your answer and repair the "error" that you discovered that counts?
Doubt that. As much as I'd like to think so. If you read the marking guidelines for the past 2 years' algorithm desk checking, you can only identify the one problem, or when it specified in last years i think (can't remember off the top of my head if it was last year or 2001) it specified multiple.Originally posted by JRasnier
maybe theres more then one error, just want to give ppl a chance.....
Why not scan the whole paper and see how Sam will make us all die of misery lol after finding out how wrong we areOriginally posted by Kn1ght_M4r3
why n0t scan the question up and see wat sam d says?
SamD is the author of the red software design and development book and he's been coming on the forums alot helping other students with marking algo and answering questions etc.Originally posted by squ34ki
what do you mean?
BEGIN ATM System
READ System_on
WHILE System_on
IF Card is located in cardslot THEN
AcceptCardDetails(CustomerNumber,StoredPassword)
AcceptAndValidatePassword(StoredPassword,Validated)
AcceptMenuChoice(Validated,CustomerNumber)
ENDIF
READ System_on
ENDWHILE
END
The card details are, in terms of the system given, just the CustomerNumber. I'd say the StoredPassword is looked up in the banks database using the CustomerNumber. The pass word is not validated until the ValidatePassword routine.Originally posted by True_Monolith07
urm...does the fact that it doesnt validate their password b4 accepting their credit details count as a logic error or a design flaw.
No, you don't need all my waffle. That was my analysis of the question, not a recommended solution.Originally posted by Ragerunner
Hmmm....interesting. Most I didn't pick up.
But did they expect us students to be able to do that?
Pretty bad question. And it was worth 4 marks!