Question: A small system is required that will help manage cars at a parking site for a company. You are to develop a system that
A small system is required that will help manage cars at a parking site for a company. You are to develop a system that includes the following three classes: . CarPark class .ParkingSlot class . Car class CarPark is responsible for maintaining a list of available parking slots. You should be able to find a slot, add a slot, delete a slot, and provide a list of all slots included in the car park. There are two types of parking slots: slots only for visitors and slots only for staff members. A parking slot must have an identifier, which starts with a capital letter, followed by a two- digit number e.g. "D01", "E27". A parking slot also should know if a car and what car is parked in the slot. You must be able to add a car to the slot and remove a car from the slot. A car will be identified by its registration number. A registration number always starts with a capital letter, followed by a four-digit number e.g. "T2345". A car should have an owner and knows if the owner is a staff member. For the purpose of this assessment, you should NOT maintain a list of parked cars in any of your classes. Submission You may use whatever tools to draw the class diagram, or draw by hand on a piece of paper and then take a photo. To submit, upload a picture, a Word, or a PDF file to the ESP site for assessment. Marking scheme 1. A proper class diagram representations (6 marks) a: correct class names b: proper attributes (visibility, meaningful names, and types) c: proper methods (visibility, meaningful names, parameters, and return types) 2. Proper class relationships (2 marks) 3. Proper multiplicities (2 marks)
Step by Step Solution
3.36 Rating (162 Votes )
There are 3 Steps involved in it
a prompt for creating a system to manage cars in a company parking lot It specifies three classes to be included CarPark ParkingSlot and Car Heres a breakdown of the functionalities of each class CarP... View full answer
Get step-by-step solutions from verified subject matter experts
