Create a dishwashing machine control system, by taking inaccount the following states:
-‘Off’ state is when no power is available, or the switch buttonis off.
-Once power is available and the power button is on, the machinegoes to `Idle` state.
-Once the start button is pressed and all checks have passed(water available, door closed, lock released…), the dishwashingmachine can go into different states based on the user selection ofthe washing type:
o If `Normal’ washing type is selected, the machinegoes to `Apply Soap` state for 30 minutes by running water pump andreleasing soap. Afterwards, it goes to `Rinse` state for30 minutes, and then to `dry`
OR
OR