Question: Write the decision sentenses to the following designs ( Write them in a pseudo code format. A general example is available here ) : Design
Write the decision sentenses to the following designs Write them in a pseudo code format. A general example is available here:
Design : Here, we are planning to program an automated light activation system. The light sensor is used as an input. The system will check the current light level and will turn the LED on if the light level of the room is low. Otherwise, it will ensure that the LED is off.
The light sensor is an analog sensor; the output values are in the range of to approximately keep in mind the actual range of values you got in lab Based on these values, think of a valuethat represents the threshold or the "low" light level to use in your if statement design.
Design : Here, we are planning to create a simple security system with intrusion detection. The sound sensor is used as an input. The system will check the sound level. If it is high this will be regarded as an intrusion the system will ask the user to enter the admin password. If it is entered successfully, the buzzer will not sound. Otherwise, the buzzer will sound to trigger the alarm.
The sound sensor is an analog sensor; the output values are in the range of to approximately. Based on these values, think of a value that represents the "high" sound level to use in your if statement design to detect intrusion.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
