Simple Instructions For The Elevator To Follow
- Arrive to destination to the floor for when called by the button.
- When arrived to the floor that you were called to, stop immediately and open your doors to allow people to walk into the elevator.
- If no one walks inside the elevator, and there is no activity detected, just close the doors and wait for the next floor to be called on.
- When proceeding up to a floor to drop people off, DONT change directions downwards if called upon a floor below you to pick people up but rather drop the people off first that are already in the elevator and then proceed to pick up the other people.
- When proceeding down to a floor to drop people off, DONT change directions upwards if called upon a floor below you to pick people up but rather drop the people off first that are already in the elevator and then proceed to pick up the other people.
These statements for the most part accurately describe the current situation, but they ARE NOT:
A set of INSTRUCTIONS to an ignorant elevator that needs to be programmed to operate as desired.
FOR EXAMPLE:
1. When the UP BUTTON is lit on any floor above where the car is positioned, proceed immediately to that floor, not stopping at any intervening floor.
Check out Sunflower828’s post. It’s closer to the ideal set of Instructions.
PeterGriffin, please read the assignment more carefully.
I feel I’ve said this many many times, but perhaps it’s the first time you’ve heard it:
YOUR READER IS THE ELEVATOR.
Write a SET OF INSTRUCTIONS to the elevator.
TELL THE ELEVATOR what to do.
______________________________________________________________________________
Here’s the pertinent section of the assignment page:
The Elevator Instructions assignment is an exercise in writing to a VERY particular audience, a non-sentient elevator that knows only what it’s told and will respond to instructions whether they are logical or not. A good response will contain no irrelevant or redundant instructions, will not contradict itself, and will result in an economical operation without wasted stops or unnecessary delays to passengers.
WRITE A COMPLETE SET OF INSTRUCTIONS for an ignorant elevator that needs to be told everything.
SAMPLE INSTRUCTIONS, in no particular order:
—Respond to all Summons Buttons by PROCEEDING to the corresponding floor.
—When arriving at any floor to which you have been Summoned, STOP the elevator and OPEN the door.
—Following 15 seconds of inactivity on any floor, CLOSE the door.
—If Proceeding up, IGNORE all Down Summons.
—If Proceeding down, IGNORE all UP Summons.
To achieve clarity and brevity, create terms like Up Button (you’ll need one for the buttons inside the elevator that indicate which floor is your destination).
_____________________________________________________________________________________
What you’ve written is a description of how the elevator operates, perhaps interesting to a human reader, but useless to the elevator.
Your grade reflects that you made an attempt, but I hope you won’t be satisfied with it.
Provisionally graded. Revisions are always encouraged and Regrades are always possible. Put the post into Feedback Please if you elect to revise.
Reply
Please don’t keep making new REWRITE posts for these small assignments, PG. I’ve consolidated all three of your Elevator posts into one with the earliest as the first draft and the latest as the one that shows up on the blog. All three versions are still retrievable through the “Revisions” function in the Edit mode. I’ll be happy to demonstrate that at any time.