Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 2 of 2 8. Eight, when the elevator reaches the destination, your algorithm opens the door of the elevator (O) and shortly after closes
Part 2 of 2
8. Eight, when the elevator reaches the destination, your algorithm opens the door of the elevator (O) and shortly after closes the door (C) and exits the program. Let us go back to the 4th condition again. In this situation, your program shows where the elevator is located: ("The Elevator (E) is in 'B'.") And a passenger pushes the button from the first floor to go up to the second floor: ("The button is pushed at '1." Then, the elevator should go to the first floor and open its door. This leads to the series of events: ("The Elevator (E) is going up . The Elevator (E) is now at '1'" "The Elevator (E) is now 'open 'O' and C-' "Elevator is going up again 'U." "The Elevator (E) is now 'open 'O' and C 1 assume that completing this task is good enough for your elevator algorithm at this point. You are free to do more for extra credits but I just need to see your program doing above-mentioned tasks Please send me the source code you designed (55 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started