Answer to Question #255574 in Java | JSP | JSF for mike

Question #255574

create a program that is expected to monitor access and attempted accesses to your network. All logon activities should be logged. All passwords should have a minimum length of 6 characters and they should use a mixture of letters, numbers and capital letters. Users are required to change their password every 30 days. All users are to get 700 MB secure storage space on the server for personal use. All home folders must be protected in such a way that only the owner can access his/her home folder. All users except those in production should be able to retain their individual settings regardless of the workstation they are using. Users in Production should not be able to change their individual setting and any changes should be discarded on log off. 


1
Expert's answer
2021-10-25T01:26:38-0400
import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		String password;
		while(true){
		    System.out.println("Set password: ");
    		password=in.next();
    		int n=password.length();
    		if (n>=6)
    		    break;
		}
		System.out.println("Your password is: "+password);
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS