Question: Some programs impose certain rules for passwords. Write a program that asks the user to enter a password and report back to the user if

 Some programs impose certain rules for passwords. Write a program that
asks the user to enter a password and report back to the

Some programs impose certain rules for passwords. Write a program that asks the user to enter a password and report back to the user if the entered password is valid password or not. If the password is valid, then the program will end. If the password is invalid, the program will indicate which of the 5 criteria was not met (see criteria listed below) and then ask the user to enter another password that is valid. The program will continue to ask for a password until a valid password is entered. Write a set of methods that checks whether the entered password string meets certain criteria for a valid password. A valid password meets the following 5 criteria: 1. A password must have at least 10 characters 2. A password must contain at least one upper case letter 3. A password must contain at least three lower case letters 4. A password must contain at least two digits 5. A password must contain at least one special character from the set (&,#,$,* +, @.%} Make sure your program implements the following methods: public static Boolean atleast 10Characters (String password) Return true if password has at least 10 characters public static Boolean atleast 1UpperCaseLetter (String password) Return true if password has at least 1 upper case letter public static Boolean atleast 3 LowerCaseLetters (String password) Return true if password has at least 3 lower case letters public static Boolean atleast2Digits (String password) Return true if password has at least 2 digits public static Boolean atLeast Specialcharacter (String password) Return true if password has at least 1 special character Remember: . For each problem, include several test runs of the program to show successful runs of your program, with both valid and invalid data (to show that you are checking for invalid data) Please ensure the program is well designed and follows accepted style guidelines (e.g. variable naming, indentation, spacing) Please ensure the program is well documented, including the overall purpose of the program and documenting all the major sections of the code. NEW: Please ensure your output includes a line that identifies you. For example: System.out.println("Written by Warren Edwards, INFO 2312 412"): C2.2: Emirp An emirp (prime spelled backwards) is a nonpalindromic prime number whose is at least two digits and whose reversal is also prime. For example, 17 is a prime number and 71 is a prime, 50 (17, 71) are an emirp pair. However, as specified above, they must be nonpalindromic prime numbers, so 11 or 131 or 313 would NOT be emirps. Write a program that asks the user to enter the number of emirp pairs to display and the program will display those pairs. Ensure you do input validation on the number of emirp pairs the user enters (must be greater than or equal to 1). Display 5 pairs per line, separated by exactly one space. So, for example, your first line would look like: (13,31) (17,71) (37,73) (79,97) (107,701) . For clarity, a prime number n must be greater than 1, and have only two factors: 1 and n. Make sure your program implements the following methods: public static Boolean is Prime (int num) Return true if number is prime public static int reversal (int number) Return an integer that has the parameter's digits reversed public static boolean is Palindrome (int number) - Return true if the number is a Palindrome Remember: For each problem, include several test runs of the program to show successful runs of your program, with both valid and invalid data (to show that you are checking for invalid data) . Please ensure the program is well designed and follows accepted style guidelines (e.g. variable naming, indentation, spacing) Please ensure the program is well documented, including the overall purpose of the program and documenting all the major sections of the code. NEW: Please ensure your output includes a line that identifies you. For example: System.out.println("Written by Warren Edwards, INYO 2312 412")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!