public static void main(String [] args) throws IOException
	{
		int count=0;
		String username = "admin";
		String password = "password";

		String username1 = "lecturer";
		String password1 = "password";

		Scanner sc = new Scanner(System.in);

		System.out.println("Please enter username:");
		String un = sc.next();

		System.out.println("Please enter password:");
		String pwd = sc.next();

		if (un.equals(username)&& pwd.equals(password)) {
			count =1;
			System.out.println("You have login as Administrator");
		} 		
		else if(un.equals(username1)&& pwd.equals(password1)){
			System.out.println("You have logged as Lecturer");
			count =2;
		}
		else {
			System.out.println("Wrong Password");
		}


		

		if(count ==1)
		{
			int option = -1;
			do
				option = showMenu();
			while(option!=0);
		}
		
		if(count ==2)
		{
			int option = -1;
			do
				option = showMenu1();
			while(option!=0);
		}

	}