Imagine you are developing a software package that requires users to enter their own passwords.

Your software requires that user’s passwords meet the following criteria:

• The password should be at least six characters long.
• The password should contain at least one uppercase and at least one lowercase letter.
• The password should have at least one digit.
Write a program that asks for a password and then verifies that it meets the stated criteria.

If it doesn’t, the program should display a message telling the user why.

Recommended Answers

All 3 Replies

here we don't do your homework. you should think more on this problem . And make full use of ifs or switch inside loop.

start thinking and writing the code. If you get errors then post your code here and we will try to point out the error.

so , don't forget to show you efforts (post your code).

Imagine you are developing a software package that requires users to enter their own passwords.

Your software requires that user’s passwords meet the following criteria:

• The password should be at least six characters long.
• The password should contain at least one uppercase and at least one lowercase letter.
• The password should have at least one digit.
Write a program that asks for a password and then verifies that it meets the stated criteria.

If it doesn’t, the program should display a message telling the user why.

Do we look that stupid for you yea? Be a man and ask for a help. Dont try to disrespect us ok? We are way ahead of you in smartness.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.