Question: Write a C++ (or Java, etc.) smart home application to manage the decision-making for the home smart-home devices. In this assignment, you will learn decision-making






Write a C++ (or Java, etc.) smart home application to manage the decision-making for the home smart-home devices. In this assignment, you will learn decision-making and machine learning. You will simulate in the program how to gather data and control smart-home devices. (See the tables below) We will work on the program framework together, partly in class. Your program asks the user to define the arguments list (i.e. variables or sequence of statements), select the logical operator, and select one or more smart-home devices on or off. The output shows the argument form, and the table of the smart devices' I/O (on/off) state, and shows the code in binary, decimal, and hex numbers. For example: The user enters the rules: If I am not home and I am away, then turn on/off one or more smart-home devices from the list. A - I am not home B - I am away R - Turn on/off... Requirements: 1) The program should be a menu-based program that continuously operates until the user decides to exit the program. 2) Add one or more rules (arguments). That is If-Then argument form 3) Select one or more compound statements and operators for the rule 4) Select one or more smart devices, I/O (1/0) - See Signal Bits (1's and O's) 5) Displays rules and the argument form (for example, like (AB)C ) 6) Write a function to convert 8-signal bits (binary) code to decimal and hex 7) Shows a table of the smart devices' I/O states; and converts binary to decimal and hex number Table of Smart-home devices: 858687888990SmartLockSmoke&CO2DetectorsSpeakerThermostatsVideoDoorbellWindowSensorsOpengaragesTellyouwhatdangerTurnon/offspeakerControltemperaturesAnsweryourdoorbellNotifywindowisopen Table of Switches - On/Off Signal Bits: Table of Supported Operators: Note: This is also consistent with what we will learn in Chapter 3 about quantifiers. The home-smart devices are I/O (on/off) such that the given predicate "some" or "all" is true for the smart-home. Domain = a set of the home-smart devices Predicate =a sentence that contains a finite set of variables (the rules)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
