Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Already done #1. Please do #2,3,4,5. Thank you. 1) (3 points) Write a C program checkPasswdLength.c to check if the length of a given password

image text in transcribed

Already done #1. Please do #2,3,4,5. Thank you.

1) (3 points) Write a C program checkPasswdLength.c to check if the length of a given password string is 10 characters or not. If not, deduct 5 points per missing character. If the total deduction is greater than 30 points, print out the deduction and message "The password is unsafe! Pleaseset."; otherwise, print out "The password is safe." Hint: you do not need to use array. Please use getchar) to get user's input. Assume the password has no spaces in it. ] A sample of the output is like below Enter a password Tes Score--35 The password is unsafe! Please reset 2) (3 points) Similar to above question, write a C program checkPasswdLetter.c to check if a password is safe or by not by checking only the evaluation criteria below. It will still print out the final score, and "safe" or "unsafe" when deduction is more than 30 points -20 points -20 points -20 points o Missing lower case Lack of capital letters o Missing numbers 3) (4 points) Similar to above question, write a C program checkDupDeduct.c to check if a password containing more than 2 consecutive characters (e.g. 123 or abc) If ves, simply output the deduction as-20 4) (2 point) If the user stores a single password in a file "passwd.txt", how to use checkPasswdLength.c to check if the password in the file is safe or not using Unix command? 5) (Bonus: 4 point) If the user stores a list of passwords in a file "passwd.txt", and each row is for one password, then how to use checkPasswdLength.c to list the safety of each password from the file

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

More Books

Students also viewed these Databases questions

Question

Azure Analytics is a suite made up of which three tools?

Answered: 1 week ago

Question

3 How supply and demand together determine market equilibrium.

Answered: 1 week ago

Question

1 What demand is and what affects it.

Answered: 1 week ago