Question: Part A (12 points) Tasks: You need to implement a java class with JUnit test to find whether a given binary string input can be

 Part A (12 points) Tasks: You need to implement a java

Part A (12 points) Tasks: You need to implement a java class with JUnit test to find whether a given binary string input can be divisible by 4 and 3 at the same time. First, you need to create DFA or NFA for the question. If you create NFA, you need to convert it to DFA. After that, minimize DFA After you have DFA, you can implement by following state transition version or by using table transition to implement it in Java. If the giving binary string is divisible by both 4 and 3, then the java program should print true, otherwise false. Please test the program correctness with a number of JUnit tests Submit you JUnit tests cases in one java file with java source code. Note: You cannot just use Modula to find out the result. You need to simulate all transition with states in Java. Part A (12 points) Tasks: You need to implement a java class with JUnit test to find whether a given binary string input can be divisible by 4 and 3 at the same time. First, you need to create DFA or NFA for the question. If you create NFA, you need to convert it to DFA. After that, minimize DFA After you have DFA, you can implement by following state transition version or by using table transition to implement it in Java. If the giving binary string is divisible by both 4 and 3, then the java program should print true, otherwise false. Please test the program correctness with a number of JUnit tests Submit you JUnit tests cases in one java file with java source code. Note: You cannot just use Modula to find out the result. You need to simulate all transition with states in Java

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!