Java programming ( JavaFX ) =========== thank you for helping ============= Crea
ID: 3812953 • Letter: J
Question
Java programming (JavaFX )
=========== thank you for helping =============
Create a JavaFX program that helps the user keep track of their passwords.
There must be a screen to login - with a username(ID) and a password
If the user doesn’t have a username and password, there must be a screen to create a new one.
Passwords must be between 8 and 10 alphanumeric characters, have at least 1 capital letter, 1 number, and one special character NOT a space
Usernames must be checked against existing usernames - if a username that already exists is chosen on registration, you must give an appropriate error message and allow the user to pick a new user name
This project should have:
An Abstract Password class with a print mechanism for passwords and an interface for validating passwords
A simple password class that allows for unvalidated passwords
A complex password class that has a validation method that throws an exception
-------------------------------------------------------------------------------------
Here is the UML for abstract class I made!!
I want this abstract class should seperate into simple class and complex class to keep track of their username and password.
<UserName>
+UserName()
+UserName (string password)
+UserName (password other)
+getUserName: string
+setUserName (string password ):void
+checkmatch (string input):boolean
<password>
+password()
+password (string password)
+password (password other)
+getpassword: string
+setpassword (string password ):void
+checkmatch (string input):boolean
Explanation / Answer
import java.util.Scanner;
/** category GraphColoring **/
public category GraphColoring
non-public int V, numOfColors;
personal int[] color;
personal int[][] graph;
/** operate to assign color **/
public void graphColor(int[][] g, int noc)
answer found **/
if (v == V)
throw new Exception("Solution found");
/** strive all colors **/
for (int c = 1; c <= numOfColors; c++)
}
}
/** operate to see if it's valid to allot that color to vertex **/
public Boolean isPossible(int v, int c)
one && c == color[i])
come false;
come true;
}
/** show resolution **/
public void display()
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.