Lab
9
Start Now
ParkingLot |
+CLOSED_THRESHOLD: double {readOnly} = 80.0 -name: String {readOnly} |
+ParkingLot(name: String, capacity: int) +ParkingLot(capacity: int) +getMinutesClosed(): int +getName(): String +getNumberOfSpotsRemaining(): int +getPercentFull(): double +isClosed(): boolean +markVehicleEntry(timestamp: int): void +markVehicleExit(timestamp: int): void +toString(): String |
District |
-lots: ParkingLot[] +MAX_LOTS: int {readOnly} =20 -numLots: int |
+District() +addLot(name: String, capacity: int): int +getLot(index: int): ParkingLot +getMinutesClosed(): int +getNumberOfSpotsRemaining(): int +isClosed(): boolean +markVehicleEntry(lotNumber: int, timestamp: int): void +markVehicleExit(lotNumber: int, timestamp: int): void +toString(): String |
Testing Small Lot... Status for Blacktop parking lot: 0 vehicles (0%) Finished Testing Small Lot Testing Overfilling a Lot... Finished Testing Overfilling a Lot More Complete Test of Parking Lot... Testing ParkingLot Status for test parking lot: 3 vehicles (75%) Status for test parking lot: 4 vehicles (CLOSED) Status for test parking lot: 2 vehicles (50%) Status for test parking lot: 0 vehicles (0%) Final status: Status for test parking lot: 0 vehicles (0%) Finished More Complete Test of Parking Lot Testing Coming and Going... Finished Testing Coming and Going Testing Tiny District... Tiny District status: Status for Red parking lot: 0 vehicles (0%) Status for Green parking lot: 0 vehicles (0%) Status for Blue parking lot: 0 vehicles (0%) District status: Status for Red parking lot: 1 vehicles (CLOSED) Status for Green parking lot: 0 vehicles (0%) Status for Blue parking lot: 2 vehicles (CLOSED) Final Tiny District status: Status for Red parking lot: 0 vehicles (0%) Status for Green parking lot: 1 vehicles (CLOSED) Status for Blue parking lot: 2 vehicles (CLOSED) Lots were closed for 3 min. in tiny district. Finished Testing Tiny District Finished Testing Normal District... Airport at timestamp 7: District status: Status for Brown parking lot: 7 vehicles (70%) Status for Green parking lot: 14 vehicles (CLOSED) Status for Black parking lot: 7 vehicles (58.3%) Airport at timestamp 8: District status: Status for Brown parking lot: 8 vehicles (CLOSED) Status for Green parking lot: 14 vehicles (CLOSED) Status for Black parking lot: 7 vehicles (58.3%) Airport at timestamp 10: District status: Status for Brown parking lot: 8 vehicles (CLOSED) Status for Green parking lot: 14 vehicles (CLOSED) Status for Black parking lot: 10 vehicles (CLOSED) Finished Testing Normal District Finished Testing Heavily Used District... At end of day, all lots closed 42 min. Final District status: Status for Pink parking lot: 17 vehicles (68%) Status for Blue parking lot: 28 vehicles (CLOSED) Status for Gray parking lot: 2 vehicles (20%) Finished Testing Heavily Used District All tests finished.## Acknowledgement This laboratory assignment was developed by [Dr. Rob Hasker](http://faculty-web.msoe.edu/hasker/) and the CS1011 instructors.
See your professor's instructions for details on submission guidelines and due dates.