预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共16页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

软件工程大题总结一、三个重要的生命周期模型及各自的优缺点1.瀑布模型生命周期模型(Waterfalllife-cyclemodel)Advantage:DisciplinedapproachDocumentdrivenDisadvantage:Deliveredproductmaynotmeetclient’sneeds2.快速原型生命周期模型(Rapidprototypinglife-cycalmodel)Advantage:Ensurethatthedeliveredproductmeetstheclient’sneedsDisadvantage:Notyetprovenbeyondalldoubt3.螺旋模型生命周期模型(Spirallife-cyclemodel)1Advantage:RiskdrivenDisadvantage:Canbeusedforonlylarge-scale,in-houseproductsDevelopershavetobecompetentinriskanalysisandriskresolution二、用例图和类图例1.ATM机用例图及类图Consideranautomatedtellermachine(ATM).Theuserputsacardintoaslotandentersafour-digitpersonalidentificationnumber(PIN).IfthePINisincorrect,thecardisejected.Otherwise,theusermayperformthefollowingoperationsonuptofourdifferentbankaccounts:(i)Depositanyamount.Areceiptisprintedshowingthedate,amountdeposited,andaccountnumber.(ii)Withdrawupto$200inunitsof$20(theaccountmaynotbeoverdrawn).Inadditiontothemoney,theuserisgivenareceiptshowingthedate,amountwithdrawn,accountnumber,andaccountbalance(余额)afterthewithdrawal.(iii)Determinetheaccountbalance。Thisisdisplayedonthescreen.(iv)Tranferfundsbetweentwoaccounts.Again,theaccountfromwhichthefundsaretransferredmustnotbeoverdrawn.Theuserisgivenareceiptshowingthedate,amounttransferred,andthetwoaccountnumbers.(v)Quit.Thecardisejected.Explainhowyouwouldensurethatasmanycodeartifactsaspossibletheproductcanbereusedinfutureproducts.(1)DrawtheUseCaseDiagram2(2)DrawtheClassDiagram(threerefinements)1)Thefirsrefinements,wefindthreeclasswhichareuser,ATMandaccount.2)Thesecondrefinements,wefindthatusern’tchangedoeswhilethesystemisoperating.33)Inthethirdrefinement,wefindthatATMalso’tchangedoesnwhilethesystemisoperating.SocatalogisinformationthatrelatestoAccounts.ThisleavesAccountasthesolecandidateclass.例2.电梯用例图及类图Aproductistobeinstalledtocontrolnelevatorsinabuildingwithmfloors.Theproblemconcernthelogicrequiredtomoveelevatorsbetweenfloorsaccordingtothefollowingconstrains:1)Eachelevatorhasaofsetm