Computers and Technology, 15.04.2020 20:56 cordobamariana07
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:
Please enter a username: foo
Username must be between 8 and 15 characters.
Please enter a username: f
Username must be between 8 and 15 characters.
Please enter a username: foo ooo ooo
Username must contain only alphanumeric characters.
Please enter a username: f
Your username must contain at least one digit
Please enter a username: 1f
The first character in your username cannot be a digit
Please enter a username: f1
Your username must contain at least one uppercase character
Please enter a username: F1
Your username is valid!
Answers: 2
Computers and Technology, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
Computers and Technology, 22.06.2019 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
You have been asked to write a username validation program for a small website. The website has spec...
Geography, 03.10.2021 01:00
Mathematics, 03.10.2021 01:00
Social Studies, 03.10.2021 01:00
History, 03.10.2021 01:00
Biology, 03.10.2021 01:00
History, 03.10.2021 01:00
Chemistry, 03.10.2021 01:00
Computers and Technology, 03.10.2021 01:00
Biology, 03.10.2021 01:00
Social Studies, 03.10.2021 01:00