Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In python 3, write program to process input file. With the objectives of: control structures(decisions and loops) Files input Functions. 1) Write a program to
In python 3, write program to process input file. With the objectives of:
1) Write a program to process an input file named "passwords.py" where data in the file is individual lines of passwords that users have chosen. Your program must indicate if that password is a "strong" password or not based on the following criteria: a. must be at least 8 characters in length b. must contain at least one uppercase letter and at least one lowercase letter You do NOT know how many lines of data are in the file, therefore you must use a sentinel-control loop to process the data. The end of the data will be indicated by a password of "DONE" Print a "neat and tidy" table (see sample run) as you read through the file indicating whether each password read is "strong" based on these criteria. 2) Function Requirements You must have ONE function for EACH of the criteria listed above. They must be value-returning functions. There must also be a main0 function containing your sentinel-control loop. 3) Sample Run NOTE: Passwords in the data file will not be longer than 20 characters. Result Password Strong Weak Strong Weak Weak Strong Strong Weak Weak Another NOTE: There is a sample data file "passwords.py" on the Lecture Moodle site if you'd like to use it. AaBb1234 GoodPassword BadPassword8 Hello5 472817404strong ABC123def456 Louisianalightning76 ragincajuns1999 196419821990 control structures(decisions and loops)
Files input
Functions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started