A company asks you to design a controller for a basketballmachine that will indicate that a player has won a game if they geta total of 3 points. There are two sensors in this machine. One inthe backboard and on the inside of the orange rim. If a playershoots a shot and the ball hits the backboard and the ball goesthrough the rim, then the play will gain 1 point. If the playershoots the ball and it doesn't hit the backboard and the ball justgoes through the rim, then the play will gain 2 points. If theplayer hits the backboard and the ball does not go through the rim,then the player will lose 1 point. The total score can only go downto zero and cannot become negative. If the ball does not go throughthe rim or hit backboard, then it will count as a no shot andnothing will happen. Once the player scores three points, the gameends, and a light will indicate that the player has won.
Part A: Make a state table that describes each state in plainEnglish and describe each binary value used.
Part B: Make a state diagram.
Park C: Make a k-map.
Part D: Make the synchronous machine schematic.
You can use either a Moore or Mealy machine and either a J-KFlip Flop or a D Flip Flop.
I was thinking about using 2-bit binary but then I got stuck soI switched to 3-bit binary and what I have looks good to me but nowmaking the k-map is making me doubt what I have so here I am askingfor help.