Answered step by step
Verified Expert Solution
Question
1 Approved Answer
+ 110% Say you are an engineer at an elevator manufacturing company. Generally, an elevator works like this: (1) the elevator compartment is raised and
+ 110% Say you are an engineer at an elevator manufacturing company. Generally, an elevator works like this: (1) the elevator compartment is raised and lowered by a hoist and pulley system (2) and a moving counterweight balances the weight of the elevator compartment (for various reasons like conservation of energy). Let us assume that a motor in an elevator can turn the wheel in either direction so that the elevator either goes up or down (with the weight doing the opposite). When you push the button inside the elevator, you activate the motor. When the motor stops, the grooves in the pulley wheel keep the rope in place so the elevator stops moving. You are to build an algorithm for a new elevator to be installed at the Arts and Science building at Lewis University. For simplicity and easiness of program, I will only a couple of conditions: 1. First, we have only one elevator in a three-story building (three floors): the Basement (B), the first floor (1) and the second floor (2) 2. Second, at a normal condition, the elevator is positioned at the Basement. 3. Third, we have only two states for the elevator: Open (O) and Close (C). 4. Fourth, one someone pushes a button, that button directs the moving of the wheel: Up (U) and Down (D). Say you are at the first floor and want to go to the second floor. Then pushing the button from the first floor activates the motor for the elevator to go up (for one floor). 5. Fifth, let us not consider pushing the button from the inside of the elevator and you only consider one passenger pushing at one time. 6. Sixth, that leaves us about three basic situations: the elevator (E) at the Basement (B) while a passenger is pushing the button from elther at the first floor (1) or the second floor (2), LIkewise, when the elevator is at the first floor (1), a passenger can push elther at the (B) or (2). The same is true with at the second floor. (2-pushed (1)-pushed (2)-pushed (1-pushed (B)-pushed (B)-pushed 7. Seventh, let us simplify further by designating "U" as going up one floor and "2U" as going up two floors. In the same fashion, going down one floor is "D" and the two floors, "2D
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