5. Create a UML state machine diagram to represent a fanthat works the way:
From the off state, if the button is pressed, the fanwill the strong ventilating state;
From the strong ventilating state, if the button ispressed, the fan goes to the medium ventilating state;
From the medium ventilating state, if the button ispressed, the fan goes to the weak ventilating state;
From the weak fan state, if the button is pressed, thefan goes to the off state.
6. Using UML State Machine Diagram model a hot/cold airconditioner.
Expert Answer
An answer will be send to you shortly. . . . .