Imagine you have to design an elevator system. Part of the elevator system handles the elevator cars themselves. An elevator car has three states, going up, going down, or idle. An elevator car moves from a source floor to a destination floor. The doors of the elevator car only open and allow passengers to get in and out of the car if the car is idle. The elevator cars have sensors that identify the number of passengers and weight (payload) in the car. These sensors update their values every time a car door opens and closes. Elevator cars will not move if the number of passengers or weight goes beyond a safety threshold. A message will be displayed to passengers if the car is over its capacity. An elevator car also has an emergency button. When the emergency button is pressed, the car turns on its microphone and connects to the security station, stops on the nearest floor, and opens its doors. Keep in mind that elevator cars depart from a source floor to move to a destination floor, going through a series of floors while checking their sensors and emergency systems. Using object-oriented programming foundations (e.g., Encapsulation, Data Abstraction, Polymorphism, and Inheritance), provide Java implementations for the components of the Elevator Car subsystem
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here