We will be rewriting the two functions in Program8-6 to accomplish two goals, which are shown in Part 1 and Part 2 below: Part 1: o Program 8-6 contains a function called, valid_password(), which determines if the password you type in passes these requirements: - Is at least 7 characters long - Contains at least one upper case character - Contains at least one lower case character - Contains at least one numeric digit o You are asked to increase the strength of the password's ability to resist hacking by adding three additional requirements to the password: - It must now contain at least 8 characters. - It must contain at least one non_Alpha_Numeric character. - It must not contain any spaces. You will use Program 8-7 to drive the module in Program 8-6 that contains the function, valid_password(), in order to test it.
o Program 8-6 contains another function called, get_login_name(), which generates a student' ID. - It uses the first three letters of the First Name - Followed by the first three letters of the Last Name - Followed by the last three numbers of the ID Number. o You are asked to change get_login_name() so that it conforms to the standards of Los Medanos College, which are the following: - It uses the first letter of the first name. - Followed by the entire last name of the student. - Followed by the last three numbers of the ID Number.
set 2 Get the last [0:3] get three characters of the student ID.
We will be rewriting the two functions in Program8-6 to accomplish two goals, which are shown in Part 1 and Part 2 below
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
We will be rewriting the two functions in Program8-6 to accomplish two goals, which are shown in Part 1 and Part 2 below
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!