Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We are creating a login module for our top secret program. We are asking you to create a login validator for this system. The

We are creating a login module for our top secret program. We are asking you to create a login validator for this system. The login validator will ask the user to create a password. The following are required: The password must start with a letter and can be eight or more characters long. The other characters can be any combination of letters and numbers. But there must be at least one number in the user name Once the user has entered their password, then we need to verify that it is valid. If it is, then we will display the message "Your password XXXXXXX is accepted." In the message there will be the same number of X's as there are characters in the accepted password. If the password fails, then the user will receive a message that says "Password invalid - it is not long enough" If less than 8 characters, "Password invalid - it does not start with a letter" if it does not start with a letter, and finally "Password invalid - does not contain a number" if it is missing a number. HINT: Letters and numbers appear consecutively in ASCII and Unicode tables. This mean that letters go a,b,c,d,.... and you could see if the letter was b or c by using relational operators (check if the value is >a and

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entrepreneurship

Authors: Andrew Zacharakis, William D Bygrave

5th Edition

1119563097, 9781119563099

More Books

Students also viewed these Programming questions

Question

How do you learn about your customer?

Answered: 1 week ago

Question

What life events might trigger your entrepreneurial career?

Answered: 1 week ago