question archive A lamp outside a front door comes on automatically when it is dark, and someone stands on the doormat outside the front door
Subject:Computer SciencePrice: Bought3
A lamp outside a front door comes on automatically when it is dark, and someone stands on the doormat outside the front door.
-A pressure sensor under the mat changes from OFF (0) to ON (1) when someone stands on the doormat.
-The light sensor is ON (1) when it is light and OFF (0) when it is dark.
-Design a program to show what would happen to the lamp. Account for all possible scenarios by determining whether the pressure sensor and light sensor are ON or OFF. (HINT: Ask the user "Is it dark?" and "Is someone standing on the doormat outside the front door?") The solution must be in Raptor.