The question goes like this: Design a finite state automaton that accepts binary strings with at least two $0$s and at most two $1$s.
I can easily design an NFA which accepts at least two $0$s OR at most two ones.
Additional question, how do you write regular expressions for automatas like these?
I cant get this method to work to generate regular expressions.
EDIT: Here is a photo of the solution. https://i.stack.imgur.com/CxLDU.jpg
EDIT 2: In the photo S5 will have a 0 to itself and S8 is the accepting state.
Use an automaton with the following states
with the obvious transitions and accepting states among these.