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 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
Computers and Technology, 23.06.2019 13:00
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
You have been asked to write a username validation program for a small website. The website has spec...
Mathematics, 07.06.2021 17:50
Spanish, 07.06.2021 17:50
Biology, 07.06.2021 17:50
Spanish, 07.06.2021 17:50
English, 07.06.2021 17:50
English, 07.06.2021 17:50
Mathematics, 07.06.2021 17:50
Mathematics, 07.06.2021 17:50
Mathematics, 07.06.2021 17:50
Mathematics, 07.06.2021 17:50
Mathematics, 07.06.2021 17:50