Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please follow all requirement Password Verifier.cpp Due Feb 24th (before class) Program Description: Write a program to ask user to enters word and validity

C++
please follow all requirement
image text in transcribed
image text in transcribed
Password Verifier.cpp Due Feb 24th (before class) Program Description: Write a program to ask user to enters word and validity the password characters long (B is acceptable and 20 entahtel, it should contain at least lower case letter. The password should contain at least one digit, and at least on alphabets or numbers. Most importantly password may not contain any white sword. The password should be 8 - 20 at least one uppercase letter and one least one symbol other than ing the parameter. Add more if Functions: You will need the following functions, do not will need the following functions, do not change function header including the parameter needed. Your main function should be less than half a page. You should have the following variables in main: string password; Function header Purpose V void getInput (atring 6 password) The function takes user input and save it into the "password" input parameter. Error message must be displayed otherwise. bool checkLength(string password) The password must be at least 8 characters long. And no more than 20-characters long. Error message must be displayed otherwise. bool checkCase(string password) The password must contain at least one uppercase and at least one lower case letter. Error message must be displayed otherwise, is levering super input bool checkDigit(string password) isdigit The password must contain at least one digit. Error message must be displayed otherwise. bool checkAlpha (string password) isalpha bool checkSymbol (string password) The password must contain at least one alphabet. Error message must be displayed otherwise. The password must contain at least one symbol that is not a "alphanumeric". The password must contain at least one digit. Error message must be displayed otherwise. Isalnum bool checkWhiteSpace (string password) The password may NOT contain any whitespace characters. The password must contain at least one digit. Error message must be displayed otherwise. The program should ask for a password and then verify that it meets the stated criteria. If it doesn't, the program should display a message telling the user why it fails with all the applicable mistakes, and then ask for re-entry until it is correct. Your program should echo the correct password (shown in the sample output) Sample Output (be sure to display all applicable error messages): Please enter a valid password: !!Error!!! Input doesn't contain an alphabet !!!Error!!! Input is too short Error!!! Input doesn't contain a lower case letter !!Error!!! Input doesn't contain an uppercase letter I! Error!! The password doesn't contain at least one symbol Please enter a valid password: password T!!Error!!! Input doesn't contain an upper case letter Error!!! Input doesn't contain a digit !!!Error!!! The password doesn't contain at least one symbol Please enter a valid password: password !!! Error!!! Input doesn't contain an upper case letter ! ! !Error!!! The password doesn't contain at least one symbol Please enter a valid password: Password? !!!Error!!! The password doesn't contain at least one symbol Please enter a valid password: Password 1 !!!Error!!! Input is too long !!!Error!!! The password doesn't contain at least one symbol !!! Error!!! Input cannot contain a white space Please enter a valid password: Passwordl# You have successfully entered a password The password you've entered is: Passwordis Press any key to continue . Other requirements: 1. Follow programming style guideline very carefully. 2. Your output style has to match with my output shown (although you can try different user input). 3. All functions must have prototypes. 4. Your main function should only declare the variables and call the functions. (shorter than half a page) 5. Store all values as variables, do not hardcode any values. . Use constant variables as much as possible 6. NO global variables in this assignment 7. Use a line separator between all function definitions. /**** 101stars******) 8. All assignments must be submitted and run as specified to pass the course (see syllabus) 9. Copy and paste your output at the end of your program. Comment out the output lines. 10. Submit your program (.cpp only) on world classroom before deadline

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions