4.15 LAB: Password modifier
Many user-created passwords are simple and easy to guess. Write
a program that takes a simple password and makes it stronger by
replacing characters using the key below, and by appending "q*s" to
the end of the input string
Write out the “brute-force” (exact) expressions for force and
torque on a loop 1 in the magnetic field B of loop 2. Write these
expressions using magnetic moment of loop 1. Pay attention to the
r, r’, … vectors. A magnet (magnetic dipole) tends to align itself
parallel to external field. If the magnetic moment is 5 [CGS units]
in -z direction and magnetic field is 25 [CGS units] in z
direction. What is the value of the torque? Plot...
Counting evens
Write the pseudo-code for a brute force approach to counting the
number of even integers in an array of n integers.
Write the pseudo-code divide-and-conquer algorithm for counting
the number of even integers in an array of n integers.
Give the recurrence relation for the number of additions in your
divide-and-conquer algorithm.
Counting integers greater than 10
Write the pseudo-code for a brute force approach to counting the
number of integers greater than 10 in an array of n integers.
Write the pseudo-code divide-and-conquer algorithm for counting
the number of integers greater than 10 in an array of n
integers.
Give the recurrence relation for the number of comparisons in
your divide-and-conquer algorithm in part b.
[JAVA]
You will write a program to validate passwords for users, making
sure they meet the following criteria:
Rules:
Passwords must be at least 8 characters long
Passwords can only contain alpha numeric characters (no spaces or
special characters)
Passwords must contain at least 1 uppercase character
Passwords must contain at least 1 lowercase character
Passwords must contain at least 1 numeric character (0-9)
Passwords cannot contain the word “password”
A password that does not meet all of these rules...