Design a 3-bit counter that follows the sequence: 1, 4, 6, 3, 7, 1, 4, 6, 3.... Unused states (0, 2, 5) must go to a used state.
Ann [662]
Answer:
This question is incomplete, here's the complete question:
Design a 3-bit counter that follows the sequence: 1, 4, 6, 3, 7, 1, 4, 6, 3.... Unused states (0, 2, 5) must go to a used state. Use the binary value of the count for each state assignment. So the sequence in binary will be 001, 100, 110, 011, 111, 001, 100, 110, 011.... Use D flip-flops. Repeat using X flip-flops. Note: There is no output to this state machine. The count (state) itself is what is desired.
Explanation:
kindly check the attached images below to see the step by step solution to the question above
Here you go,
import java.util.Scanner;
import java.util.Random;
public class OrderCalculator{
public static void main(String[] args){
float x, y, z, semi, area;
Scanner in = new Scanner(System.in);
System.out.print("Enter the 3 sides: ");
x = in.nextFloat();
y = in.nextFloat();
z = in.nextFloat();
semi = (float) ((x + y + z) / 2.0);
area = (float) Math.sqrt(semi * (semi - x) * (semi - y) * (semi - z));
System.out.printf("The area is: %.3f\n", area);
}
}
I think it is false hope this helps
I don't know if this is going to help you or not because I'm only 13 but let me know if it helps people can now talk to one another more effectively because of things like zoom and it's become more efficient to work at home because we can have online meetings