欢迎来到天天文库
浏览记录
ID:18593147
大小:290.50 KB
页数:6页
时间:2018-09-19
《华东师范大学期中期末试卷(a)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、华东师范大学期末试卷(B)2006—2007学年第二学期课程名称:________OOAD_______学生姓名:___________________学号:___________________专业:___________________年级/班级:__________________课程性质:专业必修一二三四五六七八总分阅卷人签名VideoRentalUseCase:RentaVideo1.Customerselectsvideo.2.Customerhandsvideotothecashier.3.Cashierenterscustomer
2、name.4.Systemdisplayscustomeraccount.5.Cashierbeginsanewsale.6.Cashierentersthevideotorent.7.Systemdisplaysthetotalamountdue,andduedateandpriceforthevideo.8.Cashierfinishesthesale.9.Systemdisplaysthetotalamountdue.10.Customerpaystotalamountdue.11.Cashierenterspaymentinformati
3、on.12.Systemprintsreceipt.13.Cashierhandsreceipttothecustomer.1.Analyzetherequirementsbyusingandfillinginthecategoryandassociationlists(given).ShowimportantRolesofobjects.(10points)2a.AnalyzetheresponsibilitiesofthemostimportantclassesusingCRCCards(15points)CRCCardExampleClas
4、s:Purpose:ResponsibilitiesCollaborators2b.Whatarethemostimportantoperations.ProvideOperationContractsforthemostimportantOperations(10points)OperationContractExample3a.Assignmethodstoobjectsusinginteractiondiagramsasinexamplebelow(sequenceorcollaborationdiagrams)showingGRASPPa
5、tternsusedwithcommentboxes.ForeachGRASPPatternBESURETOEXPLAINit’suse.Useonlycreator,expertandcontroller.GRASPPatterns(15points)ExampleInteractionDiagramwithGRASPPatternsCheckAccount()giventoAccountClassusingExpertsinceclassAcounthastheaccountnumberandpassword3b.ProvidetheClas
6、sDiagram(15points)a)showingthemethodsasassignedtoclassesusingtheinteractiondiagrams.b)Explaincohesionandcouplingusingtheclassdiagram.4.UsingtheGoFDesignPatternsprovided(andanyothersyouwish)pleaseaddthebelowadditionalrequirementstotheclassdiagram(35points)a)Thecustomercansubmi
7、tanyproblemstothecompanysecretarywhowillchoosethebestcompanyemployeetoanswertheproblems..b)Providedifferentwaysforthecustomertopayforthevideosuchascheck,creditcard,etc.c)Thecustomercansignonavideostorenewslettertobetoldwhennewvideosarrive.d)Customersneedtoaskthevideostorefors
8、pecialadaptertoplayAmericanvideos.6
此文档下载收益归作者所有