Hi every one , i want a help ,
i have wrote a program consists of two parallel arrays ” passwords array ” & ” numbers arrays ” do as the following :
1- write code that will log a consumer in. For the convenience of their customers
2- the system prompts them to enter their password only.
3-your code will just need to request a password from the user and check it against the passwords in the password array. If a match is not found, the system austerely questions for the password again, and continues to do so in anticipation of a match is found
4-Once a match has been found, a welcome message is showed, which includes the consumer code and should look like this:
Welcome, Consumer gw-3. Ready to start shopping?
here my answer :
but it doesn’t work as the steps up , and can i make the loop for inside a function ??
I corrected the ” password ” word
and i deleted one of tags
but no changes , the program dosn't work right when i do run
Best answer:
Answer by Pedobear0011
if ( passwprd != custPassArray[i] )
You spelled password incorrect.
You only need once.
What do you reflect? Answer not more than!
Answers Rating