Password Validation Prgram in C++, C/C++ Programming

Assignment Help:
Create a .cpp program that verifies the strength of a password that a user is entering is strong (complex/secure) enough. In the main area of the program, prompt the user to enter a password. Then, call a function, passing into it the password that they entered.
In the function, use whatever .cpp commands or built-in functions are available to ensure:
a. The password is at least 8 characters in length.
b. The password is mixed case (upper and lower).
c. You have at least one of these valid special characters in your password:
$ ! @ % ^ & * #
The function will determine if the password is strong enough and then output the correct message. Here is a sample run and output from the program:

First Run:
Enter a password: thisis
Your password length is too short. Please choose a password that is at least 8 characters long.
Your password is not a mixed case. Please choose a password with mixed case.
You do not have a valid special character in your password. Please add at least one special character.

Second Run:
Enter a password: thisismypassword
Your password is not a mixed case. Please choose a password with mixed case.
You do not have a valid special character in your password. Please add at least one special character.

Third Run:
Enter a password: Thisismypassword
You do not have a valid special character in your password. Please add at least one special character.

Fourth Run:
Enter a password: thisis!myPassWORD
Thank you. Your password is valid.

I need this done by 9 PM tonight if possible, this is a beginning programming class so it should be level appropriate

Related Discussions:- Password Validation Prgram in C++

C++, #questAt a shop of marbles, packs of marbles are prepared. Packets are...

#questAt a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets wit

Wap avgerage score-assignment- standard deviation of student, finds the ave...

finds the average for all assignments for an individual student float getAverageForStudent(float scores[20][10], int student, int numAssignments) {  }  // finds the average for

Write down the code for binary search tree in c++?, A: BinarySearchTree.h ...

A: BinarySearchTree.h ---------------------- #ifndef BINARY_SEARCH_TREE_H_ #define BINARY_SEARCH_TREE_H_ #include "dsexceptions.h" #include // For NULL // Binary

Program to calculate the n factorial, Debug the following program to calcul...

Debug the following program to calculate N! #include using namespace std; main() {             int N, factorial=1;             cout             cin >> N;

How the compiler arranges the several sections , Q: How the compiler arrang...

Q: How the compiler arranges the several sections in the executable image? A: The executable contained following sections: 1.      Data Section (initialized data variable sec

Explain the type conversion in expressions in c language, Explain The Type ...

Explain The Type Conversion in Expressions in c language? When variables and constants of different types are used in an expression they are all converted to same type. The com

C program for function of copy one string in other string, C Program for FU...

C Program for FUNCTION OF COPY ONE STRING IN OTHER STRING #include stdio.h> #include conio.h> int copy(char a[],char b[]); void main() {           char a[100],b[

Prob, Given an integer n and a permutation of numbers 1, 2 ... , n-1, n wri...

Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd