By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,779 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,779 IT Pros & Developers. It's quick & easy.

Homework Help: Password

P: 1
Ladies and gents,

Need a little help with the following:

Write a program that will accept a string from the user and evaluate it as a password, giving it a passing or a failing grade. A good password will be at least 8 characters and include at least one lower-case letter, at least one upper-case letter, at least one digit and at least one character that is neither a letter nor a digit. Your program will need to check each character in the string in order to render a verdict.

I searched and searched the book but I cant find anything...A little javascript would be nice...
Nov 17 '06 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
Ladies and gents,

Need a little help with the following:

Write a program that will accept a string from the user and evaluate it as a password, giving it a passing or a failing grade. A good password will be at least 8 characters and include at least one lower-case letter, at least one upper-case letter, at least one digit and at least one character that is neither a letter nor a digit. Your program will need to check each character in the string in order to render a verdict.

I searched and searched the book but I cant find anything...A little javascript would be nice...
Searching for solutions in books or (anywhere else for that matter) will not make you a good programmer. Did you try reading a character handling tutorial and then try to write the code yourself? If you cannot get the code to work post it then see how much help you will get. You will also note that if this is a javascript question, there is a javascript forum on this site.
Nov 17 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.