
The 737 MAX carries two angle of attack sensors, and the MCAS system that pushed the nose down listened to exactly one of them at a time. When that one vane was wrong, nothing on the aircraft was watching to disagree with it. Two crashes, 346 people. The fix Boeing shipped was the one every engineer would have written on day one: read both, and if they do not agree, trust neither.
Objective
Return the averaged reading of two sensors, or a refusal when they disagree.
Steps
$ trusted_aoa(120, 124, 10)
122
$ trusted_aoa(120, 200, 10)
-1
$ trusted_aoa(100, 110, 10)
105
Expected files
Allowed functions
None. Write every helper yourself.
Loading solutions...