资源描述:
《数据结构课程设计论文1394()》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、21,donottakesmallevilforit,nottogoodsmallandnot-ChenShou,"ThreeKingdoms・"DatastructurecurriculumdesignComputerscieneeandTechnology(2)class36,YangXiaoguangAirpassengerbookingsystem1.ProblemdescriptionAirpassengerbookingbusinessactivitiesinclude:inquiriesroutes,ticketreservationsandrefundAn
2、airpassengerbookingsystemisdesignedtoenabletheaboveservicestobeaccomplishedbycomputerFunctionsareasfollows:A.queryroute:theuserisgivenendpointstation,theoutputofthesystem,flightnumber,flighttimeandextraseats;B.takescareofbookingbusiness;C.refundbusiness2.Requirementanalysis1)eachrouteinfo
3、rmationinvolved:endpointstationname,flightnumber,flightnumber,flightonSunday(week),passengerticket,fixedamount,hasbeenbookinglistofcustomers(includingname,bookingamount,classof1,2,3)andthelistofcustomerswaitingforreplacement;1)customersthroughthecomputerbooking,firstintheterminalinputterm
4、inal,performsearchoperations,willappearInthetwocase,thereisazeroamountofexcessticket・Atthistime,thecustomercanbeaskedwhetherornotthecandidateisrequiredtowaitAlistofcustomersisaddedtothewaitinglist.Thecustomerentershisorherownrelevantinformation,orno,thenexits:Theotheristhattherearetickets
5、available・Thecustomershouldenterhisname,thenumberofticketsandtheclassofthecabin,atthistime,VariableschangeaccordinglyAftertheoperation,quit2)refund,accordingtothecustomerprovided(date,flight),forcustomerstorefundprocedures,andthencheckAskwhethertheflightisavailableornot・Firstofall,askthep
6、ersonwhoisinthefirstplace,iftherefundcanmeethisrequestForhim,forbookingprocedures,orinturnaskotherqueuedcandidatecustomers,andlettheteamoutoftheteam,TheteamthenbecamethetailIftherefunddoesnotmeetalltherequirementsofthealternatepassengers,thenexit,whiletheflightTheremainingseatschange3hypo
7、thesisanalysisSupposeasmallairlineopened5directroutes,eachrouteinformationisdividedintovariableandnonvariable,whichisthequantitativeendpointstationname,flightnumber,flightnumber,flightcrewfixedSundayand(forthefirstclass,twoclass,threeclass),variablesurplusvotestheam