Company: virtusa_15oct
Difficulty: medium
Password Strength Evaluation Problem Description Amelia is working on a program that evaluates the strength of passwords based on specified criteria. She needs assistance in creating a program to automate this process. Evaluation is based on the length of the password: If the length of the password is ≤ 3, classify it as Weak . If the length is between 4 and 7 characters (both inclusive), classify it as Medium . If the length is 8 characters or more, classify it as Strong . The program should: Receive a password as input. Write the entered password to a file named password.txt . Read the stored password from password.txt to determine its strength based on the length criteria. Write the evaluated password strength to a new file named evaluation.txt and display it. Examples Example 1: Input: Sample@pass Output: Strong Example 2: Input: pass Output: Medium Example 3: Input: Av@ Output: Weak Constraints 1 ≤ length ≤ 15