Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program to validate a users password. A user should be able to enter his/her preferred password via keyboard input. Your program checks

Write a C++ program to validate a users password. A user should be able to enter his/her preferred password via keyboard input. Your program checks for specific criteria given below and returns Valid Password or Invalid Password. If the users preferred password is invalid, it also outputs different reasons.

image text in transcribed

Part II Write a C++ program to validate a user's password. A user should be able to enter his/her preferred password via keyboard input. Your program checks for specific criteria given below and returns Valid Password or Invalid Password. If the user's preferred password is invalid, it also outputs different reasons Write separate functions to check the following criteria of the preferred password (each function returns true if it meets a certain criteria): .It is at least eight characters long .It contains at least one uppercase letter and one lower case letter It contains at least one digit It contains at least one of these four characters. @ # $ . Sample output # 1: Please enter your preferred password: UoM@orono2018 Valid Program ended with exit code: ? Sample output #2: Please enter your preferred password: UoM2018 Invalid Reason1: your password should contain at least eight characters. Reason2: your password should contain at least one of the four special characters "! @ # $" Program ended with exit code: 0

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions