|
-
Apr 25th, 2005, 11:40 PM
#1
Thread Starter
New Member
can anyone help me with this project????
Can anyone help me out with this project
i need to write a program in visual j++ 6.0
RIDING AN ELEVATOR
The problem we want to address is that of simulating an automatic elevator (that is, one in which there is no human operator). Just as with real elevators, riders may call for the elevator from and exit to any floor in the building that contains it. The elevator should remain idle until a request is made for service, and should then continue to operate until all requests have been satisfied. For the sake of simplicity, we will assume that all passengers behave in an expected manner. That is, when passengers request service from a particular floor, they are expected to board the elevator as soon as it stops at that floor (so in this model there is no changing your mind and taking the stairs). Also, on entering the elevator each passenger will request to be taken to a single floor and will leave the elevator as soon as it reaches that floor. Finally, there is a maximum capacity of 10 riders for our elevator. Any number of passengers may ride at one time.
1 - define appropriate classes and objects
2 - design and code a Java program which will simulate the elevator operation. You should design your program so that it accepts elevator commands from a disk file called “Elevator.dat”. It should allow the following commands:
1 floor# (this command specifies a pickup at floor #)
2 floor# (this command specifies a departure at floor #)
3 (Display elevator status - operating/waiting, etc. and floor number)
You must display the positioning of the elevator as you execute the various commands. Positioning includes floor numbers and direction.
Your job is to prepare a program that simulates the operation of the elevator simulation.
can u pls post the program???
thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|