Question: Use RIMS simulator to create and run a program as a solution to each of the two exercises below: NOTE: This exercise is to be

Use RIMS simulator to create and run a program as a solution to each of the two exercises below: NOTE: This exercise is to be coded in C language with while loops to wait for changes.

2. An automatic door at a store has a sensor in front (A0) and behind (A1). The door opens (B0=1) when a person approaches from the front, and stays open as long as a person is detected in front or behind. If the door is closed and a person approaches from the behind, the door does not open. If the door is closed and a person approaches from the front but a person is also detected behind, the door does not open, to prevent hitting the person that is behind. Show a description of the sequence of events and the C code for the solution.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!