//Write an application that accepts a user\'s password from an input dialog. //I
ID: 3652557 • Letter: #
Question
//Write an application that accepts a user's password from an input dialog.//If the entered password is less than six characters, more than 10 characters, or does not contain at least one letter and one digit, prompt the user again.
// When the user's entry meets all the password requirements, prompt the user to reenter the password,
//and do not let the user continue until the second password matches the first one. Save the file as Password.java.
import java.util.*;
class Password {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String goodPassword ="";
String reEnter = "";
int check = 0;
Password p = new Password();
System.out.println("Please select your password");
String password = input.next();
while(check == 0){
if((password.length() > 6)&&(password.length() < 10)){
if(p.oneNumoneLet(password)==true)
Explanation / Answer
#include #include char pw[10],ch; int i; void main() { clrscr(); puts(“Enter password”); while(1) { if(iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.