My project contains a smart home stimulation with conecepts of oop with features such as ~turning on/off thermostats and light ~ setting the brightness of lights ~ setting temperature of thermostat
SHF Smart Home Simulation System
Welcome to the SHF Smart Home Simulation System, an interactive program that simulates a smart home environment. This system allows users to manage and control smart devices such as lights and thermostats in a virtual home. The system showcases Object-Oriented Programming (OOP) principles, including inheritance, polymorphism, abstraction, and encapsulation, to provide a modular and scalable solution.
To run the SHF Smart Home Simulation System, follow these steps:
- Ensure you have a C++ compiler installed (e.g., GCC, Clang, or Visual Studio).
- Copy the source code into a file named SmartHome.cpp.
- Open a terminal or command prompt and navigate to the directory containing the file.
- Compile the program using the following command:
- g++ -o SmartHome SmartHome.cpp
- Run the compiled program:
- ./SmartHome
- Add Devices: Add smart devices to your home, such as lights and thermostats.
- Control Devices: Turn devices on or off, adjust brightness for lights, and set temperatures for thermostats.
- Display Device Status: View the current status of all devices in the home. Steps to Use:
- Run the program.
- Enter the smart home PIN (0909) to access the system.
- Use the menu options to interact with the system: o Add devices by specifying their type and ID. o Control devices by selecting them and performing actions like turning them on/off or adjusting their settings. o Display the status of all devices.
- Exit the program when done.
We welcome contributions to improve this simulation system. To contribute:
- Fork the repository and clone it to your local system.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your branch to your forked repository.
- Submit a pull request with a detailed description of your changes.
• Follow consistent coding practices. • Provide detailed comments and documentation. • Ensure your code passes all tests and compiles without errors.
This project is licensed under the MIT License. You are free to use, modify, and distribute this software, provided that proper credit is given to the original authors.