The first task of this program is to modify the program so thatthe elevator doors open when the elevator reaches the first orsecond floor.
The second task is to modify the program so that there is nouser action that can cause the elevator system to crash with anerror. Specifically: ○ A request to open the doors while theelevator is moving should be ignored. ○ A request to move to adifferent floor while the doors are fully open, opening, orclosing, should be ignored.
The code is in C, the code I have so far isn’t making theelevator do the task that is asked
PayPal Gateway not configured
PayPal Gateway not configured