您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 信息化管理 > 1-Java在线考试系统的设计与实现
华中科技大学硕士学位论文Java在线考试系统的设计与实现姓名:万宇翔申请学位级别:硕士专业:软件工程指导教师:薛志东20081031IVWebJavaWebJavaJava/JavaJavaUMLJSP(Java)MySQLDREAMWEAVER:Java/JavaVAbstractWiththerapiddevelopmentofcomputerapplications,networkingapplicationscontinuingtoexpand,aswellasthetraditionaltestmethodscannotadapttotheneedsofmodernexaminations,theon-lineWeb-basedexaminationismoreandmorepopularinrecentyears.TheJavaonlineexaminationsystemisoneoftheseWeb-basedon-lineexaminationsystems.TheJavaonlineexaminationsystemachievesthepurposeoftheon-lineexamination,reducesteachers’workload,improvesproductivityandstimulatesstudents’interestinlearning.Systemsusesthebrowser/servertodevelop.Itincludeslog,newuserregistration,usermanagement,on-lineexamination,comparisonandimplementationofthecode,andotherfunctionalmodules.Thesystemnotonlycompletestheconventionalexamination,butalsoprovidecodeuploading,compiling,runningandthecalculationofthecodesimilaritycomparison.Thecalculationofthecodesimilarityisabasisforteacherstojudgewhetherthecodeisplagiarism.Codesimilarityusedthecalculationofthemainattributesoftechnologyandcountingtechniquesofmeasuringthestructureofthedesign.Themainattributesoftechnologyincludesfourbasicattributes,thenumberofoperatingasingle-digitnumber,thetotalnumberofalloperators,alloperatorsofthetotalnumber;structureofthemeasureanalysistheinnerstructureofprograme,suchasflowcontrol.Accordingtothestructureofprograme,itneedstheanalysisofthestructureoftheprogram,suchasflowcontrol,nestedin-depth.Javacodeon-lineexaminationsystemcombinesthesetwocalculationmethods,analysistheJavacodeandcalculatesthevalueofsimilarity.VariousmodulesuseUMLtechnologytodesign,itusesJSP(JavaServerPages)technologyandMySQLdatabaseDREAMWEAVERdevelopmenttoolstorealizethesyatem.Afterthedesignandrealization,allofthefunctionsofthesystemaretested,andthecalculationofthecodesimilarityusesactualexamplestotestandanalysis.Keywords:JavaOn-lineExaminationSystemBrowse/ServerModelJavaServerPageSimilarityCalculationIII111.1JavaJavaJavaJavaWebInternet2JavaJavaWebInternet1.2WEB:1ATA[1]A0CAATA:DST()RET()SRAT()LAS()ZNM)DSTATAe-TestingDSTRETSRAT3()ATAATAATA2[2]FTP3[3]“”420JavaJavaJavaJava1.3JavaJavaJavaJavaJavaJSPStrutsJava52WebB/S——JSPJavaServletJavaBeanHTMLstrutsJSPWebJSPJavaJSPJava“”JSPJSPJSP2.1JSP2.1.1JSPJSP(JavaServerPages)SunMicrosystems[4]JSPASPHTML(*.htm,*.html)Java(Scriptlet)JSP(tag)[5]JSP(*.jsp)JSPWebLinuxJSPJavaXMLtagsscriptlets[6-9]tagsscriptletsJSPWebWebJSPJSPHTMLJava6JSPJavaServletHTMLJSP1.019999121.1JSP1.2JSP2.0JSPHTMLJavaJavaHTMLJavaServletJSPWeb[10]JavaServletJSPJSPJavaJSPJSPIBMOracleBeaJSP2.1.2JSPJSP1JSPWebHTMLXML[11-12]JSPJavaBeansJavaBeansWebJSPJSPJSPJavaBeansJDBCHTMLXMLHTMLWeb2JSPJavaBeansEnterpriseJavaBeans73WebJSP[13]JSPXMLJSPJavaBeansApplet4JavaJSPJavaBeansJSPJavaBeansJava5JavaJDBCJavaJDBCSunJDBCODBCbridgeJavaODBCODBCJavaOracleSybaseMSSQLServerMSAccessJSPWebJSPJavaJava2JSPWebJSPJavaJSPJavaServlets[14]JSPJavaJavaJSPJava“”82.1.3JSPJSP21JSPHTMLHTML2-1JSPJSPJSPJSPWebJSPJSPJSPJSPJSPJSPJavaServletsJavaJavaJavaJSPJavaServletsCGIBINHTTPJSPJSPWebJSPWebWeb2.1.4JSP1JSP1JavaPHP2ASP/PHP3JarServlet/JSP9ApplicationJava4ASPJava2JSP1ASPJava2Javaclass“”.java.class2.2StrutsFrameworkStrutsJavaWeb[15]StrutsWebStrutsStrutsJSPModel2MVCStrutsJavaBeanEJBActionServlet10ActionJSP[16-17]2-2StrutsMVC2-2StrutsMVC1JSPJSPJSPStruts2JavaBeanEJB3Struts,ActionServlet,RequestProcessorActionStrutsActionServletRequestProcessorAction:4Strutsstruts-config.xml[18-19]StrutsXMLstruts-config.xmlActionactionStrutsactionorg.apache.struts.action.ActionMappingWebActionServletStruts-config.xmlJSPActionActionActionJavaBeanEJB112.320701(Attributecounting)[20]Halstead4:;;;4()1977Ottenstein[21]HalsteadFORTRANFaidhi[22]GrierAccuseVerco2(Structuremetrics)[23](token)12McCabe[24]:;;Donaldson[25]8Donaldson[26]6:L;W;C;n=+;N=;Vs(L,W,C,n,N,V)2.4JavaJSPStrutsJSPJava“”JSP13Struts143JavaJavaJavaJavaJava3.1YamamotoPQP1p2pmp{1p2pmp}Q1q2qnq{1q2qnq}1p2pmp1q2qnqPQipjq(1im,1jn)(ipjq)(QPRs×=)sRPQ[27]()(){}(){}QP,,,+∈+∈=SjijSjiiRqpqRqppqpsPQsRPQ.sRSsR=S=0,PQS=13.21977PurdueOttessteinHalstead15[28]1MOSS(MeasureofSoftwareSimilarity)AlexAiken1994C,C++,Java,Pascal,Ada,ML,Lisp,SchemeHTMLMOSS[29]:4:kkk=2leftleefftkMOSS2YAPYetAnotherPlague[30]MichaelWise1992YAP1YAP2,1996YAPYAP3YAP1YAP2,YAP3YAP(0100)YAP.YAPIYAP2YAP31Cstrncmpstrcmp23YAP1UnixfinddiffYAP2HeckelRKR-GETRunningKarpRabinGreedyStringTiling)YAPYAPYAP:163JPlag[31-32]JPlagJavaYAP3GreedyStringTilingYAP3JPlagJava,C,C++SchemeJPlag:(tokenstring).TilesAB()()BAtilesCBAS+×=2,()∑=lengthtilesCABABabABmatch(a,b,length)ablengthJPlagGSTJPtagMOSSYAP3JPlagMOSSPlaguesSIDPDetectSiffDUPBanditCogger3.33.3.1JavaJavaJavaJavaJavaJavaJava17Java:Java80%Java70%80%Java80%Java01100%0JavaJavaJavaJava3.3.2Java:1Java100%2Javainta;aintb3Java24JavaYAPJPlagJavaJavaJavaJava3-13-2183-1Java3-2Java3A1B1C14A2B2C2D2A1a1b1c1d1A1aB1B1b,C1C1cJavaX=a+b+c/43-3abcJavaA2C2B2A2A2B2B2C2C2D2D2D2JavaA1C1B1A1A1B1B1C1C1194A2B2C2D2A1a1b1c1d1aa3-3A1aabcJavaaaa1b1c1d1a1A1m1n1A2m2n2m1intm1_intm2intm2_intintm_int=m1_int/m2_int()m_floatm_doubleM=(∑m)/C1C1NMA1A2A1m
本文标题:1-Java在线考试系统的设计与实现
链接地址:https://www.777doc.com/doc-6419962 .html