Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
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 1. Number of fans 2. Number of ACs 3. Number of bulbs.  Setups a menu with state of each appliance 1. Fan 1 is “Off” 2. Fan 2 is “Off” 3. AC 1 is “Off”  Allows user to select the device by entering the device number.  On selecting the device shows the menu 1. Switch Fan 1 On (or Off based on current state) 2. 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 1. Fan 1 is “On” 2. Fan 2 is “Off” 3. AC 1 is “Off".....

plzzz provide the solution for this.. i was tried to get this but not able to got output..could u try and send me solution
Posted
Comments
Member 11428137 7-May-15 5:24am    
Which part do you need help with?
I suggest you post the code you've written so far, with some notes on what isn't working.
No one's going to write the whole thing from scratch for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900