Object Oriented Analysis and Design Assignment
Essay Preview: Object Oriented Analysis and Design Assignment
Report this essay
[pic 2] Object Oriented Analysis & Design (CCT102)AssignmentTerm 3, 2016[pic 3][pic 4][pic 5][pic 6][pic 7][pic 8][pic 9][pic 10]Student’s ID 018800022156Student’s Name Shakeef Saneer Lecturer’s Name TAN KIA WAICourse IDITC[pic 11][pic 12][pic 13][pic 14]STUDENT DECLARATION:I declare that:I understand what is meant by plagiarism. The implication of plagiarism has been explained to me by my institution. This assignment is all my own work and I have acknowledged any use of the published and unpublished works of other people. Student’s Signature: ShakeefSubmission Date: 15th Nov 2016[pic 15][pic 16][pic 17][pic 18]FOR OFFICIAL USE ONLY:Marker’s CommentsMarker’s Name:Initial Marks Awarded /100Penalty on Late SubmissionFinal Marks Awarded /100Contents1. Identify and briefly explain the objects, classes, methods and attributes for the lorry rental system. 32. Draw a use case diagram to represent the lorry rental System. 83. Draw a Class Diagram that models the lorry rental System 9Identify and briefly explain the objects, classes, methods and attributes for the lorry rental system.ObjectsObjects are people, spots, or things that are pertinent to the framework we are breaking down. Protest arranged frameworks portray elements as items. Run of the mill articles might be clients, things, requests, et cetera. Articles may likewise be GUI presentations or content areas on the show.ClassesA class is an outline or layout or set of guidelines to construct a particular sort of protest. Each question is worked from a class. Every class ought to be outlined and customized to finish one, and one and only, thing. (Youll take in more about the Single Obligation Rule in Question arranged programming ideas: Composing classes.) In light of the fact that every class is intended to have just a solitary duty, numerous classes are utilized to manufacture a whole application.MethodsA method is an activity that can be asked for from any question of the class. Strategies are the procedures that a class knows to do. Method are likewise called operations. For the class of rentCar(), rentOut(), checkIn(), and administration() are cases of method. While determining strategies, the primary letter is typically lowercase.
AttributesAn attribute describes some property that is controlled by all objects of the class. See that the RentalCar class has the characteristics of size, shading, make, and model. All autos have these traits, yet every auto will have distinctive qualities for its characteristics. For instance, an auto can be blue, white, or some other shading. Later on we will exhibit that you can be more particular about the scope of qualities for these properties. At the point when determining properties, the primary letter is typically lowercase.Objects:lorry- a lorry rental system should have enough lorries to rent out.Attributes:model- before the customer rent theyll check for the latest modelcolor- keeping different colors will make the customer choice easiersize- size matters for each customersspeed- the efficiency for transporting goodslicence- valid registrationregistrationNumberMethod:carryWeight()- able to transport heavy itemsprovideSpace()- can carry a large amount of itemsservice()- service the lorryInsuranceAttributes:insuranceId- company idexpiryDate- insurance expiryamountPaid- Paid amount for the insuranceinsuranceType- PackagedateOfPurchase- Purchase dateaddress- address of company registeredMethod:claimDamage()renewPackage() applyInsurance()employee- the workers will be used to keep the whole system running.Attributes:position- employee positionname- name of the employeesalary- monthly salaryid- employee IDpassword- user password of employeeaddress- employee addressMethod:verifyPayment()- before receiving the lorry payment should be verifieddeliverVehicle()- once all the process is done the lorry will be delivered to the customergenerateReport()- Generate reports for the vehicleregisterVehicle() updateRent()computer- important to keep the daily records of all transactions.Attributes:staffData- Staff detailscustomerData- Customer detailslogs- daily logs of rentaccounts- financial reports login- user loginMethod:updateData()addCustomer()promoteRent()rent- Attributes:plateNumber- lorry registered numberrentDate- dat of rentaldailyRentFee- rental feecustomerID- customer idemployeeID- employee iddownPayment- advance paymentreturnDate- rent return dateMethod:rentOut()updateRent()viewReservation()viewRent()Bill- Payment for the rent.Attributes:billNumber- Number of billbooking- booking detailspayableAmount- amount to be paid by customertotalPaid- total amount paidrentDate- rental datedurationDate- no of renting dayscontact- customer and company contact detailsMethod:modifyInformation()calculatePayment()createBill()customer- the person who will rent the lorryAttributes:fullName- customer full nameidentificationNumber- IC numberemail- customer contactfileNumber- file register numbermobile- customer mobilenationality- born countryoccupation- student, employed or own careercustomerID- new id for customerMethod:createCustomer()updateCustomer()makeChoices()mechanic- will be the one to repair the lorriesAttributes:name- name of the mechanicid- id numberskills- talents salary- monthly salary for the employeeMethod:modifyLorry()repairLorry()mainainCondition()Agreement:Attribute:vehicleNo signaturehireDatenameOfEmployeeMethod:confirmAgreement()displayPolicies()readAgreemnet() MaintenanceAttribute:serviceDate- staffMaintaincedinspectioncostnextServiceDateMethodservice()inspectVehicle()writeReport()Draw a use case diagram to represent the lorry rental System.[pic 19][pic 20][pic 21][pic 22][pic 23][pic 24][pic 25][pic 26][pic 27][pic 28][pic 29][pic 30][pic 31][pic 32][pic 33][pic 34][pic 35][pic 36][pic 37][pic 38][pic 39][pic 40][pic 41][pic 42][pic 43][pic 44][pic 45][pic 46][pic 47][pic 48][pic 49][pic 50][pic 51][pic 52][pic 53][pic 54][pic 55][pic 56][pic 57][pic 58][pic 59][pic 60][pic 61][pic 62][pic 63][pic 64][pic 65][pic 66][pic 67][pic 68][pic 69][pic 70][pic 71][pic 72][pic 73]