subject
Computers and Technology, 11.04.2020 04:47 nick974

You have been asked to write a username validation program for a small website. The website has specific rules on what constitutes a valid username, including:

All usernames must be between 8 and 15 characters long

Usernames can only contain alphabetic (a-z and A-Z) and numeric characters (0-9) - no special characters are allowed.

The first character in a username cannot be a digit
Usernames must contain at least one uppercase character
Usernames must contain at least one lowercase character
Usernames must contain at least one numeric character

Write a program that asks the user to enter in a username and then examines that username to make sure it complies with the rules above. Here's a sample running of the program - note that you want to keep prompting the user until they supply you with a valid username:

a. Please enter a username: foo
Username must be between 8 and 15 characters.

b. Please enter a username: f
Username must be between 8 and 15 characters.

c. Please enter a username: foo ooo ooo
Username must contain only alphanumeric characters.

d. Please enter a username: f
Your username must contain at least one digit

e. Please enter a username: 1f
The first character in your username cannot be a digit

f. Please enter a username: f1
Your username must contain at least one uppercase character

g. Please enter a username: F1
Your username is valid!

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
You know the right answer?
You have been asked to write a username validation program for a small website. The website has spec...
Questions
question
Mathematics, 07.12.2019 09:31
question
Mathematics, 07.12.2019 09:31
Questions on the website: 13722362