|
C Project Help |
| Status |
Closed |
| Budget |
$20-100 |
| Posted |
09 May 2008 09:33 PM |
| Expires |
14 May 2008 09:33 PM |
| Posted By |
miued |
| Service buyer Rating |
    |
| Description |
The Amalgamated Elevator Company (AmalElCo) runs all of the elevators in Smoketown. There are two main classes of elevators: freight elevators and passenger elevators. Freight elevators are slower than passenger elevators and have two sets of doors. The inner set of doors should only be opened after the outer set is opened, and should be closed before the outer doors close. Passenger elevators have only a single set of doors and come in two types--regular and express. Express elevators are faster than regular elevators but only stop at the ground floor and a single range of floors above that (e.g., the first floor, and floors 45-50). Each elevator is equipped with a weight sensor. If the weight inside the elevator exceeds the capacity, the doors of the elevator open and the levator will not change floors until the weight is reduced. The job is to develop software in C++ that models the collection of elevators in a given building. Ultimately the software will be embedded in their elevator hardware and will send input via sensors; for now, all input and output will be via console (i.e., keyboard and screen). To this end, the software should be able to support up to eight elevators, and it starts by reading an elevator collection file from disk. (The design of this file is left to the software developer.) The file must contain: © the number of elevators in the building. © the number of floors in the building. © for each elevator: • elevator type (freight, regular passenger, or express passenger). • weight limit. • range of floors serviced (for express elevators). The user is then allowed to do any of the following: © Add passenger/cargo: The user specifies the elevator weight of the addition and is given a passenger/cargo ID. © Remove passenger/cargo: The user specifies the elevator and passenger/cargo ID. © Open/close outer doors: The user specifies the elevator. © Open/close inner doors: The user specifies the elevator; only freight elevators have inner doors. © Move to floor: The user specifies the elevator and the floor. © Inspect elevator: The user specifies an elevator and gets all the current information on that elevator. © End program. The program should give meaningful output at each stage, and should refuse any request that is wrong (i.e., it should not move when over weight; or, if the doors are open, it should not open the inner doors of a freight elevator if the outer doors are not open). Your program does not have to deal with timing issues; the move command moves elevators instantly. Amalgamated wants an object-oriented design such that the front end, console i/o can be removed and replaced easily with the code for their sensor software. |
| Categories |
|
| Database |
N/A
|
| Operating System |
- -
|
|
|
|
|
| |
| Service provider |
Bid |
Delivery Time |
Bid Time |
Rating |
|
| |
|