Menu

(Solved) : 4 Amusement Park Ride Sensor Mats Left Ao Right A1 Ride Car Ride Operator Starts Ride Pres Q44028649 . . .

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 p

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. Show transcribed image text 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.

Expert Answer


Answer to 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…

OR