Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 1.79 KB

File metadata and controls

42 lines (40 loc) · 1.79 KB

1 Switchboard simulation

A switch board has a set of buttons which are used to control the state of appliances and switch them on or off. Design a switch board simulation that is used to control electric appliances in a room. The supported appliances are

  1. Fan
  2. AC
  3. Bulb This should be console application with the following behavior  On startup asks user for
  4. Number of fans
  5. Number of ACs
  6. Number of bulbs.  Setups a menu with state of each appliance
  7. Fan 1 is “Off”
  8. Fan 2 is “Off”
  9. AC 1 is “Off”  Allows user to select the device by entering the device number.  On selecting the device shows the menu
  10. Switch Fan 1 On (or Off based on current state)
  11. Back  On selecting one of the option changes the state of the device and returns back to the main menu.  The main menu now reflects the new state of the device such as
  12. Fan 1 is “On”
  13. Fan 2 is “Off”
  14. AC 1 is “Off

console demo

image

2 Parking Lot

image

console demo

image

Check Slot Availablity

image

park vehicle

image

unpark vehicle

image