Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programing What this program does is checking if the pasword is strong, base on capital letter and containing number and the length should be

C programing

What this program does is checking if the pasword is strong, base on capital letter and containing number and the length should be more than 6.

Something weird happens when I print out the array input can someone help why I am getting those weird stuff in my arrays?

#include #include int main() { char password[20]; int i = 0; int j = 0; int k = 0; int l = 0; int flg1 = 0; int count;

printf("Enter a password "); scanf(" %s", password);

if(strlen(password)>=6) // strlen() is used to check the length of string { flg1 = 1; }

for(count=0;count

}

for(count=0;count

}

printf(" UpperCase %d\t letter %d\t Digit %d\t ($-#-_-&) %d ",i,j,k,l);

int m = 0; for(m=0;m

if(i>=1 && j>=1 && k>=1 && l>=1 && flg1 >= 1 ){ printf(" this is a good password "); }

else{ printf(" this is a weak password "); }

return 0; }

out put when I just typed g

image text in transcribed

Enter a password UpperCase e etter 6 Digit e ($-# 8) 0 password[g] password[ l password [L] passwordu password[I] password[k] password[] password[u] password[p] asswordl password[@] password] password[] password password] password[] passwordIt] password 2 password[@] password[ ] password[p] this is a weak password Process returned 0 (0x0) execution time : 2.046 s Press any key to continue

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

How can I or others help?

Answered: 1 week ago

Question

Which options are of interest to you?

Answered: 1 week ago

Question

How will you measure it?

Answered: 1 week ago