PDA

Click to See Complete Forum and Search --> : can anyone help me in writing this program


g_banda2009
Apr 25th, 2005, 02:11 PM
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

Arachnid13
Apr 25th, 2005, 02:28 PM
this is the "classic visual basic" section of the forums, and u want help writing a j++ project. u might want to put it in the right forum section first

Dillinger4
Apr 25th, 2005, 10:13 PM
Visual j++? You must be Rip Van Winkle. :lol: Micro$oft dropped support for j++ a long time ago. You might want to try J# or just leave the dark side all together and step into the Sun. :cool:

Andy_Hollywood
May 1st, 2005, 09:15 AM
so you want us to do your homework? or have you started on the program and want advice? on problems etc..?