Skip to content

saytoaditya/Java-Based

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages