Java Program implement a simple ceiling fan with these characteristics: • The unit has 2 pull cords: One increases
Posted: Thu Jul 14, 2022 2:18 pm
Java Program
implement a simple ceiling fan with these characteristics:• The unit has 2 pull cords: One increases thespeed each time it is pulled. There are 3 speed settings, andan “off” (speed 0) setting. If the cord is pulled on speed3, the fan returns to the “off” setting. One reverses the directionof the fan at the current speed setting. Once the direction hasbeen reversed, it remains reversed as we cycle through the speedsettings, until reversed again.• You can assume the unit is always powered (no wallswitch)
implement a simple ceiling fan with these characteristics:• The unit has 2 pull cords: One increases thespeed each time it is pulled. There are 3 speed settings, andan “off” (speed 0) setting. If the cord is pulled on speed3, the fan returns to the “off” setting. One reverses the directionof the fan at the current speed setting. Once the direction hasbeen reversed, it remains reversed as we cycle through the speedsettings, until reversed again.• You can assume the unit is always powered (no wallswitch)