We have a parking office class for an object-oriented parking management system using java Add (implement )a method to the Parking Office c to return a collection of customer ids (getCustomerIds)...


We have a parking office class for an object-oriented parking management system using java





    • Add (implement )a method to the Parking Office c to return a collection of customer ids (getCustomerIds) using java




I have attached two class diagrams with definitions of all related classes in our system (i.e car, customer, .....).



N.B.
Parking office methods in the class defination like

register, getcustomer and addcharge
have already been implemented, we just need an additional getcustomerID method as mentioned above


| ParkingLot<br>| lot id: String<br>| address: String<br>| capacity: integer<br>| entry (Car): void<br>| tostring(): String<br>| CarType <<enum>><br>СОMPАСТ<br>| SUV<br>| Car<br>| permit: String<br>| permit expiration: LocalDate**<br>license: String<br>type: CarType<br>| owner: customer id<br>| tostring(): String<br>|Customer<br>| customer id: String<br>| name: String<br>| address: String<br>| phone number: String<br>| register(license: String,<br>type: CarTyре): Car<br>| tostring(): String<br>

Extracted text: | ParkingLot | lot id: String | address: String | capacity: integer | entry (Car): void | tostring(): String | CarType > СОMPАСТ | SUV | Car | permit: String | permit expiration: LocalDate** license: String type: CarType | owner: customer id | tostring(): String |Customer | customer id: String | name: String | address: String | phone number: String | register(license: String, type: CarTyре): Car | tostring(): String
Money +++<br>cents: long<br>Money()<br>Money(string)<br>Money(Money)<br>getdollars (): double<br>tostring(): string<br>Parkingcharge<br>permit id: String<br>lot id: String<br>incurred: Instant**<br>amount: Money<br>| tostring(): string |<br>Parkingoffice<br>name: String<br>address: String<br>customers: List<Customer><br>cars: List<Car><br>lots: List<ParkingLot><br>charges: List<ParkingCharge><br>register(String name,<br>string address,<br>string phone): Customer<br>register(Customer c,<br>string license,<br>Cartype t): Car<br>getcustomer (string name): Customer<br>addcharge (ParkingCharge): Money<br>***<br>

Extracted text: Money +++ cents: long Money() Money(string) Money(Money) getdollars (): double tostring(): string Parkingcharge permit id: String lot id: String incurred: Instant** amount: Money | tostring(): string | Parkingoffice name: String address: String customers: List cars: List lots: List charges: List register(String name, string address, string phone): Customer register(Customer c, string license, Cartype t): Car getcustomer (string name): Customer addcharge (ParkingCharge): Money ***
Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here