A small system is required that will help manage cars at a parking site for a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Answer rating: 100% (QA)
Here is a simple implementation in Python for the three classes mentioned python class Car def inits... View the full answer
Related Book For
Core Concepts Of Accounting Information Systems
ISBN: 9780470507025
11th Edition
Authors: Nancy A. Bagranoff, Mark G. Simkin, Carolyn Strand Norman
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Answer the following questions: 1. What values are inherent in the helping process? 2. Why does Egan refer to them as tools of the trade?
-
Perform one iteration of the steepest ascent method to locate the maximum of (x, y) = 4x + 2y + x2 2x4 + 2xy -3y2 Using initial guesses x = 0 and y = 0. Employ bisection to find the optimal step...
-
Which of the following always do/does apply to corporations? Mention true or false against each and explain your rationale. a. Unlimited liability. b. Ownership can be transferred without affecting...
-
Describe the role of an organizations personnel in compliance and antifraud efforts.
-
Hannon Company makes swimsuits and sells these suits directly to retailers. Although Hannon has a variety of suits, it does not make the All-Body suit used by highly skilled swimmers. The market...
-
As an International Business Strategist advise on how Porter's Diamond is a useful concept in explaining home and host location strategies in International Business? Your answer should make reference...
-
A missile guidance system has five fail-safe components. The probability of each failing is 0.05. Find these probabilities. a. Exactly 2 will fail. b. More than 2 will fail. c. All will fail. d....
-
5. The sales manager is convinced a 13% reduction in the selling price, combined with a $70,000 increase in advertising, would increase this year's unit sales by 25%. a. If the sales manager is...
-
CASE STUDY: Jol Transport has been around since 1965, a household name with hundreds of satisfied customers. Jol Transport is based in Centurion, Gauteng, and service domestic relocations in the...
-
discuss and comment the following post : Who hasn't dreamt of winning the jackpot at least once in their life? The exhilarating idea of holding that winning ticket with numbers like 11, 7, 5, and 19...
-
How do globalization and neoliberal economic policies influence the dynamics of social class, particularly in terms of the creation of transnational elite classes and the globalization of poverty?
-
John is participating in a marathon that is 26.2 miles and he finishes in 4.5 hours. His distance, d, depends on his time, t. What is an appropriate domain for this situation?
-
Why do you think that clinical psychology is the most popular subspecialty of psychology?
-
Please show all steps clearly. Also please use m=0, f= 7 and l=5 in the equation above and the solve accordingly. The set of linear equations for this question is as under. 2x + 1x 3x3 + 5x4-9x5 = 8...
-
To help you become familiar with the accounting standards, this case is designed to take you to the FASBs Web site and have you access various publications. Access the FASBs Web site at...
-
With the help of your instructor, identify a particular information system that is not working very well and perform a preliminary investigation of it. In your work, be sure to talk to (1) At least...
-
What is click fraud? Who benefits and who loses when click fraud occurs?
-
Bennet National Banks credit-card department issues a special credit card that permits credit-card holders to withdraw funds from the banks automated teller machines (ATMs) at any time of the day or...
-
Use the technique discussed in Section9.4 to develop a GEE approach for zeroinflated Poisson model for count responses in longitudinal studies. Section9.4: 9.4 Marginal Models for Longitudinal Data...
-
The price of a non-dividend paying stock is \($19\) and the price of a three-month European call option on the stock with a strike price of \($20\) is \($1.\) The risk-free rate is 4% per annum. What...
-
A U.S. Treasury bond pays a 7% coupon on January 7 and July 7. How much interest accrues per \($100\) of principal to the bond holder between July 7, 2013, and August 9, 2013? How would your answer...
Study smarter with the SolutionInn App