Question: Use C Programming Language V Step 1: Design an elevator display for a 5-storey building (level 1 to level 5). For simplicity, the input is

 Use C Programming Language V Step 1: Design an elevator display

Use C Programming Language V Step 1: Design an elevator display for a 5-storey building (level 1 to level 5). For simplicity, the input is either 1, 2, 3, 4, or 5. The outputs are the digit to show level. The digit count-up if the input is greater than current level. Counts down if the input is smaller than current level. If input is equal to current level, nothing occurs. Step 2: Add another one elevator display (multiple elevators on each floor) and add interrupt routine to the elevator display from Step 1. >> Add another one elevator display, which means there are two elevators. Now, the input will be 2-tier. The first set of input will be going up, going down}. For simplicity, let us assume the passenger is only at floor 1 or floor 5. If the passenger pressed going up, it means the passenger want to go up from floor 1. So, the elevator that is nearest to floor 1 is coming down to pick up the passenger. If the passenger pressed going down, it means the passenger wants to go down from floor 5. The second set of inputs will be the destination floor {1,2,3,4,5), and the elevator will go to the chosen floor, as in Step 1. In addition to that, there is an emergency button designed as external interrupt routine, when pressed at any time, the elevator will stop, and the elevator door is open (LED light up outward movement as in the figure if there is no suitable simulator/hardware). Task 5: Discussion: Suggest an algorithm design to make the elevator available on every floor. Suggest a better interrupt routine for emergency routine and justify your answer. Use C Programming Language V Step 1: Design an elevator display for a 5-storey building (level 1 to level 5). For simplicity, the input is either 1, 2, 3, 4, or 5. The outputs are the digit to show level. The digit count-up if the input is greater than current level. Counts down if the input is smaller than current level. If input is equal to current level, nothing occurs. Step 2: Add another one elevator display (multiple elevators on each floor) and add interrupt routine to the elevator display from Step 1. >> Add another one elevator display, which means there are two elevators. Now, the input will be 2-tier. The first set of input will be going up, going down}. For simplicity, let us assume the passenger is only at floor 1 or floor 5. If the passenger pressed going up, it means the passenger want to go up from floor 1. So, the elevator that is nearest to floor 1 is coming down to pick up the passenger. If the passenger pressed going down, it means the passenger wants to go down from floor 5. The second set of inputs will be the destination floor {1,2,3,4,5), and the elevator will go to the chosen floor, as in Step 1. In addition to that, there is an emergency button designed as external interrupt routine, when pressed at any time, the elevator will stop, and the elevator door is open (LED light up outward movement as in the figure if there is no suitable simulator/hardware). Task 5: Discussion: Suggest an algorithm design to make the elevator available on every floor. Suggest a better interrupt routine for emergency routine and justify your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!