Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

My professor asked us to do this, Im stuck!! please hep me, we using Flowgorithm

ID: 3678016 • Letter: M

Question

My professor asked us to do this, Im stuck!! please hep me, we using Flowgorithm. "Attached are the two programs below (p257_6.3-needlen and p257_6.3-needloop) for your exercise. You are based on these two programs which one is able to 'loop' when password is less than the desired value and one is able to check the length of the password length. Your program is to check the user input password length whether is has more than 6 charaters or not, then, output a statement likes "your password is confirmed"; otherwise, when password length is less than 6 charaters, your program will continue to ask your user input password until password length has 6 or more charaters" . This is the two pics for the program he want us use it.

Explanation / Answer

p257_6.3-needloop is able to 'loop' when password is less than the desired value and is able to check the length of the password

#include<iostream>

int main()

{

string password;

int length,min = 6; // minimum password length

bool correctpass;

cout<<"Enter Password";

cin>>password;

length = sizeof(password);

if( min >= length && length <= 100)

correctpass = true;

else correctpass = false;

if ( correctpass == true )

cout<<" Your new Password has been accepted";

else{

  cout<< " Password Length minimum 6 to 100 characters Try again";

return main();

   }

return;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote