Computers and Technology
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!

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 05:00, mikeysoulemison
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
image
Computers and Technology, 24.06.2019 03:30, live4dramaoy0yf9
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, ramirez5571
"gps interaction and cognitive process" respond to the following: imagine that you have been asked to design a gps product that will have voice recognition and bluetooth capability. discuss and conceptualize a user interaction model. predict two (2) problems that may arise in gps products with voice recognition and bluetooth capability. recommend solutions for each of these issues. attention is one of the six cognition processes. when attention is applied to a design, the goal is to make it easier for the end user to quickly locate where he / she should type information on the computer or mobile device screen. compare and contrast how the google search engine and the microsoft bing search engine employ the attention cognition process. provide your opinion as to which search engine better employs the attention cognition process and explain why.
Answers: 3
image
Computers and Technology, 24.06.2019 21:30, Xghoued2056
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
Do you know the correct answer?
You have been asked to write a username validation program for a small website. The website has spec...

Questions in other subjects: