Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ pls. Write a small program that implements the fan tester logic. You can write the program in C++ or Java or Python. You
In C++ pls.
Write a small program that implements the "fan tester" logic. You can write the program in C++ or Java or Python. You need to submit your code and a word document that contains evidence showing correct output. One example is given here: M Fan Tester Logic H 0 (M^H) vo MyObservation T F TT T TTT TFF FT T F F F => If true, the fan will turn off. To recall: Logic in electronic devices. Most of the devices and appliances used in everyday life are controlled by electronic circuitry that works according to the laws of logic. A designer of an electronically-controlled device must first express the desired behavior in logic, and then test that the device behaves as desired under every set of circumstances. An electronic fan automatically turns on and off depending on the humidity in a room. Since the humidity detector is not very accurate, the fan will stay on for 20 minutes once triggered in order to ensure that the room is cleared of moisture. There is also a manual off switch that can be used to override the automatic functioning of the control. Define the following propositions: M: The fan has been on for twenty minutes. H: The humidity level in the room is low. . 0: The manual "off" button has been pushed. The fan will turn off if the following proposition evaluates to true: (MAH)VO A truth table can be useful in testing the device to make sure it works as intended under every set of circumstances. The following table might be used by a technician testing the electronic fanStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started