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


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




    • Add(implement) a method to the Parking Office class to
      return the collection of permit ids for a specific customer (getPermitIds(Customer))
      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 definition like

register, getcustomer and addcharge
have already been implemented, we just need an additional
getPermitIds(Customer)
method as mentioned above


Explain your code in a few words


Important- We have a method to return a collection of permit ids (getPermitIds), what we need is a method to return the collection of permit ids for a
specific customer
(getPermitIds(Customer))


| 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
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>

Extracted text: 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 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here