Question: Need C Code for it 4. An amusement park ride has sensor mats on the left (AO) and right (A1) of a ride car. A
Need C Code for it

4. An amusement park ride has sensor mats on the left (AO) and right (A1) of a ride car. A ride operator starts the ride by pressing a button (A7); each unique press toggles the ride from stopped to started (B0=1) and vice-versa. If anyone leaves the ride car and steps on a sensor mat, the ride stops and an alarm sounds (B1=1). The alarm stops sounding when the person gets off the sensor mat. The only way for the ride to restart is for the operator to press the button again. The ride never starts if someone is on the sensor mat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
