Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ (Password verification) Ask a user to enter his/her passwords. Your program requires that users passwords meet the following criteria: -The password should be at

C++ (Password verification)

Ask a user to enter his/her passwords. Your program requires that users passwords meet the following criteria:

-The password should be at least 8 characters and at most 24 characters long.

-The password should contain at least one uppercase and at least one lowercase letter.

-The password should have at least one digit.

-The password should contains at least one special symbol from the set {@,#,*,%}.

If a password does not meet the criteria, your program should display a message telling the user why.

If a password does meet the criteria, your program should display a message telling the user the password is valid.

******************************************************************************

Hints: You may use the following string functions:

#include //in order to use some library functions

s.length() // returns the length of string s

isdigit(s[k]) // returns true if the character s[k] is a digit,

// returns false otherwise

isupper(s[k]) // returns true if the character s[k] is an

// uppercase letter, returns false otherwise

islower(s[k]) // returns true if the character s[k] is a

// lowercase letter, returns false otherwise

Show Your Output!!

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Discuss the steps of a generic change project.

Answered: 1 week ago

Question

Define the term Working Capital Gap.

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago