yeh i said similar.Originally 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....dayum it dayum it...
Yes, it doesn't let you in to the menu. But then you can go through the loop again, enter the same CustomerNumber and retype the password as many times you want until you get the right one.Originally posted by zoodboog
i dont see how thats a logic error. if validated = false, nothing happens (ie it doesnt let you into the menu), which is what would happen in real life as well (well you might get an error message as well).
No the mainline isn't fine. It SEEMS fine, but it doesn't fulfill its purpose fully. You can attempt to get the right password 3 times, but if you don't - nothing happens, and that's wrong. Something should happen because otherwise it allows you to crack the password via trial and error. That's the logic error. As i said before, the error needn't be in-your-face, it can be subtle - which is most often the case with logic errors.edit: btw, the guess password 3 times stuff was handled in AcceptAndValidatePassword, look at part iii, the mainline was fine
Actually if you look at the structure diagram on the previous page the password is keyed in, with the Keyed Password parameter being passed from the module "Accept password" back up to the module "Accept and validate password"Originally posted by JRasnier
but that might be logically stoopid but noone ever said its logically wrong to the program, they may want it happening more then 3 times, also there not typing password, well it says nothing about a password being typed, i see it coming fromt he card...