Write the Boolean expression for the function (W) that corresponds to an irrigat
ID: 3677536 • Letter: W
Question
Write the Boolean expression for the function (W) that corresponds to an irrigation system. The system should turn the water on when the soil humidity is low. Irrigation should not occur when it's raining or during the day. It's more efficient to irrigate at night so the water doesn't evaporate. The system is automated based on the rules above. However, the user has two switches to override the automation. The force-on switch (S1), when turned on, activates the irrigation without regard to the rules above. Similarly, the force-off switch (S2), when turned on, stops the irrigation and overrides the automation rules. Write the Boolean expression of W using the five variables below.Explanation / Answer
1) if(H==0) then w=1 . (when soil humidity is low then irrigation is active)
2) if(R==1)then w=0. (when it is raining then irrigation is stopped)
3) if(L==0) then w=1. (when light is dark then irrigation is active)
4) if(s1==1) then w=1. (when force on switch is on then irrigation is active)
5) if(s2==0) then w=0. (when force on switch os off then irrigation is stopped)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.