Question: C++ please follow all requirements Your program should echo the correct password (shown in the sample output) Sample Output (be sure to display all applicable

C++ please follow all requirements

C++ please follow all requirements Your program should echo the correct password(shown in the sample output) Sample Output (be sure to display all

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: 123 !!!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 upper case letter !!!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!!! 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: Password1# ** ** ** ** * * You have successfully entered a password The password you've entered is: Password1# 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 vue reuzul (Weil LIUJU) Program Description: Write a program to ask user to enter a password and validity the password. The password should be 8 - 20 characters long (8 is acceptable and 20 is acceptable), it should contain at least one uppercase letter and one lower case letter. The password should contain at least one digit, and at least one symbol other than alphabets or numbers. Most importantly, a password may not contain any white space. Functions: You will need the following functions, do not change function header including the parameter. Add more if needed. Your main function should be less than half a page. You should have the following variables in main: string password; Function header void get Input (string & password) Purpose 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. bool checkDigit(string password) The password must contain at least one digit. Error message must be displayed otherwise. bool checkAlpha (string password) The password must contain at least one alphabet. Error message must be displayed otherwise. bool checkSymbol (string password) 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. 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!