Question: C++. Using Microsoft Visual Studio. The output must look like the image below. My output and code is below. When password does not meet the

C++. Using Microsoft Visual Studio.
The output must look like the image below. My output and code is below.

When password does not meet the criteria the output must be specific to what is incorrect and allow the user to re-enter a new password. My result is below. My program is getting stuck when I enter a password that does not meet the criteria. Below is the image of my program and error code I am receiving. My code is below.


#include
void validatePassword(string str) {
bool uF, lF, dF, flag = true; if (str.length()
for (int i = 0; i = 'A' && str[i] = 'a' && str[i] = '0' && str[i]
int main() { cout > str; validatePassword(str); return 0; }
12. Password Verifier Imagine you are developing a software package that requires users to enter their own passwords. Your software requires that users' passwords meet the following criteria: The password should be at least six characters long. The password should contain at least one uppercase and at least one lowercase letter. The password should have at least one digit. Write a program that asks for a password and then verifies that it meets the stated criteria. If it doesn't, the program should display a message telling the user why. e C:\Users\davyn\Documents\courses_troy\l_2013\C++\Homework\student_work\Debug\week2_sa... D obs The password must have: at least 6 characters, at least one uppercase character, at least one lowercase character, at least one numeric digit Enter a password: asdf The password must be 6 or more characters long. The password must have : at least one uppercase character The password is not valid. Press any key to continue .. C:\Users\davyn\Documents\courses_troy\I 2013\C++\Homework student_work Debug week2 sa... O The password must have: at least 6 characters, at least one uppercase character, at least one lowercase character, at least one numeric digit Enter a password: I lovecato The password is valid. Press any key to continue . . - - C:\Users\chris\Desktop\Troy Computer Science 2 CS 2255\hw2\Debug\hw2.exe The password must have : at least 6 characters at least one uppercase character at least one lowercase character at least one numeric digit Enter a password: asfdo The Password must be 6 or more characters long if (!uF) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
