Design an elevator control system for an 8 floors building, drawthe logic diagram, and illustrate the system with the followingsituations:
1. The car is on the ground floor, John Doe wants to go fromground floor to 7th floor;
2. The car is on 8th floor, John Doe wants to go from 6th floorto the ground floor;
3. The car is moving up from 4th floor to 7th floor, John Doewants to go from 6th floor to the ground floor;
4. The car is moving down from 7th floor to 4th floor, John Doewants to go from 6th floor to the ground floor.