Professional Documents
Culture Documents
%&'&()*(+
CERTI,ICATE
This is to certify that this project entitled E-A"INATION SYSTE" submitted in the partial fulfillment, for the award of degree of BAC.E/OR O, APP/ICATION of Ven0ates#1ara Institute o2 Com3uter S4ien4e and Te4#no5o6y by Ro#it7 Nimmi7 $#usboo and Ri4#a under my supervision. The matter embodied in this project work has not been submitted earlier for award of any degree or diploma in any university/institution to the best of our knowledge and belief. Mr. Munish Sharma ( roject guide!
A40no15ed6ement
"t gives me a great sense of pleasure to present the report of the #$% roject undertaken during #$% &inal 'ear. " owe special debt of gratitude to my internal supervisor "r8 "unis# S#arma for their constant support and guidance throughout the course of my work. Their sincere and benevolent support and innovative ideas have been a constant support for me. "t is only the cogni(ant efforts of my project and co)project guides that my project has seen the light of the day. " also do not like the miss the opportunity of acknowledge the valuable assistance and cooperation of my friends during the development of my project. &inally by the grace of the almighty and blessings of my parents, " have successfully completed this project. " am very grateful to all the people mentioned above as its because of their blessings and cooperation that " could complete this project.
INTRO>?CTION
Pro=e4t >es4ri3tion
The project *+,am Suite- is developed in .ava, which mainly focuses on basic +,am operations. *+,am Suite- is a windows application written for /0bit 1indows operating systems, designed to help users to write e,ams. The software +,am Suite has / main modules. 2ogin Module "nsertion to 3atabase Module +,tracting from 3atabase Module
SYSTE" ANA/YSIS
E-ISTIN@ SYSTE"
System %nalysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. 4ere the key 5uestion is what all problems e,ist in the present system6 1hat must be done to solve the problem6 %nalysis begins when a user or manager begins a study of the program using e,isting system. 3uring analysis, data collected on the various files, decision points and transactions handled by the present system. The commonly used tools in the system are 3ata &low 3iagram, interviews, etc. Training, e,perience and common sense are re5uired for collection of relevant information needed to develop the system. The success of the system depends largely on how clearly the problem is defined, thoroughly investigated and properly carried out through the choice of solution. % good analysis model should provide not only the mechanisms of problem understanding but also the frame work of the solution. Thus it should be studied thoroughly by collecting data about the system. Then the proposed system should be analy(ed thoroughly in accordance with the needs.
PROPOSE> SYSTE"
roposed system is an +,am Suite. %ccording to designate we can create an account, writing e,am using that account. 7ur proposed system has the following advantages. 8ser friendly "nterface &ast access to database 2ess error Storage $apacity
SYSTE" >ESI@N
"EN? TREE
"odu5e I /o6in
"odu5e II Si6n ?3
"odu5e IV Resu5t
Re6istered ?ser
Re6istration
Auestions
Resu5t 3ub5is#ed
>ATABASE >ESI@N
The general theme behind a database is to handle information as an integrated whole. % database is a collection of interrelated data stored with minimum redundancy to serve many users 5uickly and effectively. %fter designing the input and output, the analyst must concentrate on database design or how data should be organi(ed around user re5uirements. The general objective is to make information access, easy 5uick, ine,pensive and fle,ible for other users. 3uring database design the following objectives are concerned9) $ontrolled :edundancy +asy to learn and use More information and low cost %ccuracy "ntegrity
TAB/ES ?SE>
Name Auestion Primary 0ey s4ode7 Bno
,ie5dname Scode =no =desc $hoice> $hoice0 $hoice/ %nswer Name Re6istration Primary 0ey Emai5 ,ie5dname +mail &name 2name 3ob =uali h password Ty3e ;archar0 ;archar0 ;archar0 @umber ;archar0 @umber ;archar0 SiCe < < 0< >? >< >< >? Ty3e ;archar0 ;archar0 ;archar0 ;archar0 ;archar0 ;archar0 ;archar0 SiCe < < 0< /? /? /? /?
Name Resu5t
,ie5dname
SiCe
Context >ia6ram
8ser System
:esult
/o6in )8<
SYSTE" I"P/E"ENTATION
previous versions of Microsoft 1indows. "t presents a significantly redesigned graphical user interface, a change Microsoft promoted as more user)friendly than previous versions of 1indows. @ew software management capabilities were introduced to avoid the B322 hellB that lagued older consumer versions of 1indows. "t is also the first version of 1indows to use product activation to combat software piracy, a restriction
That did not sit well with some users and privacy advocates. 1indows A has also been critici(ed by some users for security vulnerabilities, tight "ntegration of applications such as "nternet +,plorer and 1indows Media layer, and for aspects of its user interface.
.ISTORY O, JAVA
"n @ovember >GG<, Sun Microsystems introduced a new
programming language to the world) .ava. 8ntil then the word * Java- could only mean an island in "ndonesia or a particular blend of coffee. Though its initial development began as early as >GG>, it took some time for the final working version to reach the market. The basic objective behind developing the language was to create software that could be embedded in consumer electronic devices. +fforts were taken to produce a portable, platform in dependable language, and the result of this led to the birth of a new language. .ames Hosling and a team of other programmers were the pioneers behind this development. "t was initially called * Oak- but was later renamed to *Java. Slowly but gradually it was found that "nternet users had
similar problems of portability and platform independence and were looking for software that could address these issues. .ava language was found to be small, secure and portable. Thus .ava, which was initially developed to cater To small)scale problems, was found capable of addressing large)scale problems across the "nternet. ,EAT?RES O, JAVA The .ava 2anguage is Simple 7bject 7riented latform)"ndependent
Simple
The designers of .ava were trying to develop a language that a programmer could learn 5uickly. They also wanted the language to be familiar to most programmers, for ease of migration. 4ence the .ava designers removed a number of comple, features that e,isted in $ and $FF. .ava does not have features such as pointer manipulation, operator overloading etc. .ava does not use the Igo toJ statement, or header filed. $onstructs like IstructJ and IunionJ have also been removed from .ava.
Platform-Independent
latform)independence refers to the ability of the program to migrate from one computer to another without any 3ifficulty. .ava is platform independent at the source level as well as at the binary level. .ava is strongly typed language. This means that you need to declare the type for any variable. The java data types are consistent across all the development platforms. .ava has its own foundation class libraries. This allows the programmer to write code that can be mobbed from one machine to another, with out having to rewrite it. "n short, platform independence at the source level allows the user to move the source code from one system to another, compile the code, and run it clearly on the system. latform independence at the binary level allows the user to run the compiled binary file on multiple platforms without recompiling the code.
Robust
.ava is strictly a typed language. 4ence it re5uires e,plicit method declaration. .ava checks your code at the time of compilation and also at the time of interpretation. Thus it eliminates certain types of programming errors. .ava does not have pointers and pointer arithmetic. "t checks all access to arrays and strings at the runtime. "t also checks the casts of objects from one type to another at runtime.
"n traditional programming environments, the programmer had to manually allocate memory. #y the end of the program, the programmer had to e,plicitly free this memory. roblems arose when the programmer forgot to de allocate the memory. "n .ava the programmer doesnJt need to bother about memory de allocation. "tJs done automatically, as .ava provides Harbage collections for un used objects. .avaJs e,ception handling feature simplifies the task of error handling and recovery.
Secure9
;iruses are a great cause of worry in the world of computers. rior to the advent of .ava, programmers had to first scan files, before downloading and e,ecuting them. 7ften this precaution was no guarantee against viruses. %lso there were many malicious programs that programmers need to look out for. These programs could search the contents of your local file system and retrieve sensitive data. .ava provides a controlled environment for the e,ecution of the program. "t never assumes that the code is safe for e,ecution. %nd since java is more than a programming language, it provides several layers of security control. "n the first layer, the data and methods are encapsulated in the class. They can be accessed only through the interface that the class provides. .ava does not allow any pointer arithmetic. 4ence it does not allow direct access to the memory. "t disallows array overflow, prevents reading memory out of bounds, and provides garbage collection. %ll these features help minimi(e safety and portability problems.
"n the second layer the compiler ensures that the code is safe and follows the protocols set by .ava before compiling the code. The third layer is safety provided by the "nterpreter. The verifier thoroughly screens the byte codes to ensure they obey the rules before e,ecuting them. The fourth layer takes care of loading the classes. The class loader ensures that the class doesnJt violate the access restrictions, before loading it to the system.
Distributed
.ava can be used to develop applications that are portable across multiple platforms and operating systems. .ava is designed to support network applications.
Multithreaded
.ava programs use a process called ImultithreadingJ to perform many tasks simultaneously. .ava provides the master solution for synchroni(ing multiple processes. The built in support for threads enables interactive applications on the internet to run simultaneously
SYSTE" CON,I@?RATION
.AR>DARE REA?IRE"ENTS
rocessor $lock speed System bus :%M 433 Monitor Leyboard Mouse
9 9 9 9 9 9 9 9
"ntel entium "; 0.D H4K or above <?? M4K /0 bits 0<CM# of :%M D? H# or higher S;H% >?ELeys 0 button mouse $727:
SO,TDARE REA?IRE"ENTS
9 9 9 9
MS 1"@371S A S 0 .ava :untime +nvironment >.< $ore .ava .0S3L>.< Microsoft %ccess 0??/
ABO?T "S!ACCESS
%ccess is a relational database program .%ccess is used to enter, edit, and analy(e lists of data. :elational databases minimi(e redundant data %dvantages of %ccess 3uplicate data is minimi(ed "nformation is more accurate 3ata entry is faster and easier "nformation can be viewed and sorted in multiple ways. "nformation is more secure "nformation can be shared among several users "nformation retrieval is faster and easier
APPEN>I-
pwl.set#ounds(0?,Q?,E?,/?!N pwt.set#ounds(><?,Q?,>E?,/?!N okPnew .#utton(B7LB!N ok.set#ounds(<?,>0?,>??,/?!N canPnew .#utton(B$%@$+2B!N can.set#ounds(>E?,>0?,>??,/?!N nusrPnew .2abel(B&or new user please B!N nusr.set#ounds(>D?,>C<,><?,/?!N btnrPnew .#utton(BSign upB!N btnr.set#ounds(0<<,>CG,QQ,0?!N c.add(lnl!N c.add(lnt!N c.add(pwl!N c.add(pwt!N c.add(ok!N c.add(can!N c.add(nusr!N c.add(btnr!N ok.add%ction2istener(this!N can.add%ction2istener(this!N btnr.add%ction2istener(this!N set;isible(true!N R public void action erformed(%ction+vent ae! O String sPae.get%ction$ommand(!N if(s.e5uals(B7LB!! O try O
pstmtPconn.prepareStatement(Bselect M from registrationB!N lnPlnt.getTe,t(!N System.out.println(Bln> BFln!N pswPpwt.getTe,t(!N System.out.println(Bpsw BFpsw!N :esultSet rsPpstmt.e,ecute=uery(!N int flagP?N while(rs.ne,t(!! O String onePrs.getString(BemailB!N StringtwoPrs.getString(BpasswordB!N if(ln.e5uals(one! SS psw.e5uals(two!! O flagP>N :ules ruPnew :ules(one!N ru.set8p(!N set;isible(false!N dispose(!N R R if(flagPP?! O .7ption ane.showMessage3ialog (this, B"nvalid 8sername or assword.B!N B+,am Suite B, .7ption ane. 2%"@TM+SS%H+!N lnt.setTe,t(BB!N pwt.setTe,t(BB!N R R catch(S=2+,ception e! O System.out.println(Bs5l e,ceptionB!N R
R if(s.e5uals(B$%@$+2B!! O System.e,it(?!N R if(s.e5uals(BSign upB!! O new Sign8p(!.set8p(!N set;isible(false!N R R 2og&om(! O try O $lass.for@ame(Bsun.jdbc.odbc..dbc7dbc3riverB!N connP3riverManager.get$onnection(Bjdbc9odbc9+,amSuiteB,BB,BB!N R catch($lass@ot&ound+,ception e! O System.out.println(Bclass not e,ceptionB!N R catch(S=2+,ception e! O System.out.println(Bs5l e,ceptionB!N R this.set3efault$lose7peration(.&rame.+A"TT7@T$27S+!N R
Si6n?38=a9a
import java,.swing.MN import java.awt.MN import java.awt.event.MN import java.s5l.MN public class Sign8p e,tends .&rame implements %ction2istener O .2abel jlb,jlfna,jllna,jldob,jl5u,jlph,jlpw,jlemN .Te,t&ield jtfna,jtlna,jtdob,jt5u,jtph,jtemN . assword&ield jtpwN .#utton jbsav,jblogN $ontainer cN $onnection connN reparedStatement pstmtN Sign8p(! O try O $lass.for@ame(Bsun.jdbc.odbc..dbc7dbc3riverB!N connP3riverManager.get$onnection(Bjdbc9odbc9+,amSuiteB,BB,BB!N R catch($lass@ot&ound+,ception e! O System.out.println(Bclass not e,ceptionB!N R catch(S=2+,ception e! O System.out.println(Bs5l e,ceptionB!N R this.set3efault$lose7peration(.&rame.+A"TT7@T$27S+!N R
public void set8p(! O cPget$ontent ane(!N setSi(e(G??,Q??!N setTitle(B+,am SuiteB!N c.set#ackground($olor.white!N c.set2ayout(null!N jlbPnew .2abel(new "mage"con(Buit.jpgB!!N jlb.set#ounds(?,?,G??,>0?!N jlfnaPnew .2abel(B&irst @ameB!N jlfna.set#ounds(0C?,>Q?,>0?,/?!N jtfnaPnew .Te,t&ield(!N jtfna.set#ounds(DD?,>Q?,>0?,/?!N jllnaPnew .2abel(B2ast @ameB!N jllna.set#ounds(0C?,0/?,>0?,/?!N jtlnaPnew .Te,t&ield(!N jtlna.set#ounds(DD?,0/?,>0?,/?!N jldobPnew .2abel(B3ate of #irthB!N jldob.set#ounds(0C?,0G?,>0?,/?!N jtdobPnew .Te,t&ield(!N jtdob.set#ounds(DD?,0G?,>0?,/?!N jl5uPnew .2abel(B=ualificationB!N jl5u.set#ounds(0C?,/<?,>0?,/?!N jt5uPnew .Te,t&ield(!N jt5u.set#ounds(DD?,/<?,>0?,/?!N
jlphPnew .2abel(B hone @o.B!N jlph.set#ounds(0C?,D>?,>0?,/?!N jtphPnew .Te,t&ield(!N jtph.set#ounds(DD?,D>?,>0?,/?!N jlemPnew .2abel(B+ mailB!N jlem.set#ounds(0C?,DQ?,>0?,/?!N jtemPnew .Te,t&ield(!N jtem.set#ounds(DD?,DQ?,>0?,/?!N jlpwPnew .2abel(B asswordB!N jlpw.set#ounds(0C?,</?,>0?,/?!N jtpwPnew . assword&ield(!N jtpw.set#ounds(DD?,</?,>0?,/?!N jbsavPnew .#utton(BSaveB!N jbsav.set#ounds(0C?,<G?,>??,/?!N jblogPnew .#utton(BHo to 2oginB!N jblog.set#ounds(DC?,<G?,>??,/?!N
c.add(jlb!N c.add(jlfna!N c.add(jtfna!N c.add(jllna!N c.add(jtlna!N c.add(jldob!N c.add(jtdob!N c.add(jl5u!N c.add(jt5u!N c.add(jlph!N c.add(jtph!N c.add(jlem!N c.add(jtem!N
c.add(jlpw!N c.add(jtpw!N c.add(jbsav!N c.add(jblog!N jbsav.add%ction2istener(this!N jblog.add%ction2istener(this!N set;isible(true!N R public void action erformed(%ction+vent ae! O String sPae.get%ction$ommand(!N 7bject objPae.getSource(!N String emailPnew String(B B!N if(s.e5uals(BSaveB!! O try O pstmtPconn.prepareStatement(Binsert into registration values(6,6,6,6,6,6,6!B!N String fnamePjtfna.getTe,t(!N pstmt.setString(0,fname!N String lnamePjtlna.getTe,t(!N pstmt.setString(/,lname!N String dobPjtdob.getTe,t(!N pstmt.setString(D,dob!N String 5ualPjt5u.getTe,t(!N pstmt.setString(<,5ual!N String phPjtph.getTe,t(!N pstmt.setString(C,ph!N emailPjtem.getTe,t(!N pstmt.setString(>,email!N String pwPjtpw.getTe,t(!N pstmt.setString(Q,pw!N
pstmt.e,ecute8pdate(!N R catch(S=2+,ception se! O .7ption ane.showMessage3ialog (this, B+rror in saving the fileB, B+,am Suite ) S=2 +rrorB, .7ption ane. 2%"@TM+SS%H+!N R .7ption ane.showMessage3ialog (this, BSuccessful :egistration B, B+,am Suite B, .7ption ane. 2%"@TM+SS%H+!N jtfna.setTe,t(BB!N jtlna.setTe,t(BB!N jtdob.setTe,t(BB!N jt5u.setTe,t(BB!N jtph.setTe,t(BB!N jtem.setTe,t(BB!N jtpw.setTe,t(BB!N R if(s.e5uals(BHo to 2oginB!! O new 2og&om(!.setup(!N set;isible(false!N R R R
Ru5es8=a9a
import java,.swing.MN import java.awt.MN import java.awt.event.MN public class :ules e,tends .&rame implements %ction2istener O .2abel jlbN . anel jpPnew . anel(!N .Te,t%rea jtru,jTe,t%reaN .#utton jbconN $ontainer cN .Scroll ane jsp,scrollable aneN String emN :ules(String email! O emPemailN this.set3efault$lose7peration(.&rame.+A"TT7@T$27S+!N R public void set8p(! O cPget$ontent ane(!N setSi(e(G??,Q??!N setTitle(B+,am SuiteB!N c.set#ackground($olor.white!N c.set2ayout(null!N jp.set2ayout(new &low2ayout(!!N jp.set#ackground($olor.white!N jp.set#ounds(><?,0>?,C??,/??!N jlbPnew .2abel(new "mage"con(Buit.jpgB!!N jlb.set#ounds(?,?,G??,>0?!N
String strPBWnWt +A%M :82+SWnWnBF BThis is a simple user friendly software developed using .ava.WnBF B"t can be applied to schools ,colleges etc to conduct e,ams.WnBF BThe procedure for using this software is very easy. Select one WnBF Bof the e,ams listed in the menu.%fter selecting the choice the WnBF Be,am will be started by clicking continue button.The 5uestionsWnBF Band options are displayed on the screen.1e can choose oneWnBF Bof the answer.%fter completing the e,am the results are WnBF Bdisplayed on the screen.WnBN jtruPnew .Te,t%rea(str,>D,/<!N jtru.set&ont(new &ont(B%rialB,&ont. 2%"@F&ont.#723,>C!!N jsp P new .Scroll ane(jtru!N jp.add(jsp!N c.add(jp!N jbconPnew .#utton(B$ontinueB!N jbcon.set#ounds(D??,<<?,>??,/?!N c.add(jlb!N //c.add(jsp!N c.add(jbcon!N jbcon.add%ction2istener(this!N set;isible(true!N R public void action erformed(%ction+vent ae! O String sPae.get%ction$ommand(!N if(s.e5uals(B$ontinueB!! O new Select+,am(em!.set8p(!N set;isible(false!N R R R
Se5e4tExam8=a9a
import java,.swing.MN import java.awt.MN import java.awt.event.MN import java.s5l.MN public class Select+,am e,tends .&rame implements %ction2istener O . anel jpl P new . anel(!N .2abel lbse,jl5n,jl5d,jlbN .Te,t&ield jte,N .$ombo#o, jcbseN .:adio#utton jone,jtwo,jthreeN #uttonHroup g P new #uttonHroup(!N .#utton jbse,jbse>N $ontainer cN $onnection connN reparedStatement pstmtN int 5nP?,countP?,ansP?N String comPBemptyB,sevenPBemptyB,email,e,amN
Select+,am(String eml! O try O $lass.for@ame(Bsun.jdbc.odbc..dbc7dbc3riverB!N connP3riverManager.get$onnection(Bjdbc9odbc9+,amSuiteB,BB,BB!N R catch($lass@ot&ound+,ception e! O System.out.println(Bclass not e,ceptionB!N R catch(S=2+,ception e! O
System.out.println(Bs5l e,ceptionB!N R emailPemlN this.set3efault$lose7peration(.&rame.+A"TT7@T$27S+!N R public void set8p(! O cPget$ontent ane(!N setSi(e(G??,Q??!N setTitle(B+,am SuiteB!N c.set#ackground($olor.white!N c.set2ayout(null!N //jpl.set2ayout(null!N //jpl.set#ounds(0<?,C??,/<?,/<?!N jlbPnew .2abel(new "mage"con(Buit.jpgB!!N jlb.set#ounds(?,?,G??,>0?!N lbsePnew .2abel(BSelect an +,am9B!N lbse.set#ounds(0D?,><?,>D?,/?!N String seUVPOB$B,B$FFB,B.avaBRN jcbsePnew .$ombo#o,(se!N jcbse.set#ounds(/<?,><?,>0?,/?!N jte,Pnew .Te,t&ield(!N jte,.set#ounds(/<?,><?,>0?,/?!N jbsePnew .#utton(B$ontinueB!N jbse.set#ounds(<??,><?,>??,/?!N jl5nPnew .2abel(B B!N jl5n.set#ounds(0<<,0/<,/?,/?!N jl5dPnew .2abel(B B!N jl5d.set#ounds(0E?,0/<,C??,/?!N jone P new .:adio#utton(BB,false!N
jone.set#ounds(0E?,0Q<,C??,0<!N jone.set#ackground($olor.white!N jtwo P new .:adio#utton(BB,false!N jtwo.set#ounds(0E?,0G<,C??,0<!N jtwo.set#ackground($olor.white!N jthree P new .:adio#utton(BB,false!N jthree.set#ounds(0E?,/><,C??,0<!N jthree.set#ackground($olor.white!N g.add(jone!Ng.add(jtwo!Ng.add(jthree!N jbse>Pnew .#utton(B@e,tB!N jbse>.set#ounds(/<?,C??,>??,/?!N c.add(jlb!N c.add(lbse!N c.add(jcbse!N c.add(jte,!N c.add(jbse!N c.add(jl5n!N c.add(jl5d!N //jone.set;isible(false!N //jtwo.set;isible(false!N //jthree.set;isible(false! //jpl.set#ackground($olor.white!N c.add(jbse>!N //c.add(jpl!N jbse.add%ction2istener(this!N jbse>.add%ction2istener(this!N jone.add%ction2istener(this!N jtwo.add%ction2istener(this!N jthree.add%ction2istener(this!N set;isible(true!N jbse>.set;isible(false!N jte,.set;isible(false!N R public void action erformed(%ction+vent ae! O String sPae.get%ction$ommand(!N 7bject objPae.getSource(!N
if(s.e5uals(B$ontinueB!! O tryO pstmtPconn.prepareStatement(Bselect M from 5uestion where scodeP 6B!N e,amPBBFjcbse.getSelected"tem(!N pstmt.setString(>,e,am!N :esultSet rsPpstmt.e,ecute=uery(!N while(rs.ne,t(!! O jbse>.set;isible(true!N jl5d.setTe,t(BTo start +,am please click the ne,t buttonB!N countFFN R System.out.println(count!N R catch(S=2+,ception e! O System.out.println(Bs5l e,ceptionB!N R jbse.set;isible(false!N jte,.set;isible(true!N jte,.setTe,t(B BFjcbse.getSelected"tem(!!N jte,.set+ditable(false!N jcbse.set;isible(false!N R if(s.e5uals(B@e,tB!! O // jone.set;isible(true!N // jtwo.set;isible(true!N // jthree.set;isible(true!N c.add(jone!N c.add(jtwo!N c.add(jthree!N jone.setSelected(false!N
jtwo.setSelected(false!N jthree.setSelected(false!N if(com.e5uals(BemptyB! XX seven.e5uals(BemptyB!! O R else if(com.e5uals(seven!! O ansFFN System.out.println(B$ontinue9 BFans!N R 5nP5nF>N if(5nYPcount! O try O pstmtPconn.prepareStatement(Bselect M from 5uestion where scodeP 6 %@3 5noP6B!N String scPBBFjcbse.getSelected"tem(!N pstmt.setString(>,sc!N pstmt.setString(0,BBF5n!N System.out.println(BS$ BFsc!N :esultSet rsPpstmt.e,ecute=uery(!N while(rs.ne,t(!! O StringonePrs.getString(BscodeB!N StringtwoPrs.getString(B5noB!N StringthreePrs.getString(B5descB!N StringfourPrs.getString(Bchoice>B!N StringfivePrs.getString(Bchoice0B!N String si,Prs.getString(Bchoice/B!N sevenPrs.getString(BanswerB!N System.out.println(B%nswers9 BFseven!N
jl5n.setTe,t(two!N jl5d.setTe,t(three!N jone.setTe,t(four!N jtwo.setTe,t(five!N jthree.setTe,t(si,!N System.out.println(one!N System.out.println(two!N System.out.println(three!N System.out.println(four!N System.out.println(five!N System.out.println(si,!N R R catch(S=2+,ception e! O System.out.println(Bs5l e,ceptionB!N R R else O System.out.println(B$ompleteB!N //System.out.println(B$omplete9 BFans!N System.out.println(B ercentage9 BFansFB?B!N String eligN if(ansZP<! eligPB+ligibleBN else eligPB@ot +ligibleBN try O pstmtPconn.prepareStatement(Binsert into result values(6,6,6,6!B!N pstmt.setString(>,email!N pstmt.setString(0,e,am!N
pstmt.setString(/,BBFansFB?B!N pstmt.setString(D,elig!N pstmt.e,ecute8pdate(!N R catch(S=2+,ception se! O .7ption ane.showMessage3ialog (this, B+rror in saving the dataB, B+,am Suite ) S=2 +rrorB, .7ption ane. 2%"@TM+SS%H+!N R :esult r P new :esult(email,e,am!N r.set8p(!N set;isible(false!N dispose(!N R R if(objPPjone! O comPjone.getTe,t(!N System.out.println(com!N R if(objPPjtwo! O comPjtwo.getTe,t(!N System.out.println(com!N R if(objPPjthree! O comPjthree.getTe,t(!N System.out.println(com!N R R
Resu5t8=a9a
import java,.swing.MN import java.awt.MN import java.awt.event.MN import java.s5l.MN public class :esult e,tends .&rame implements %ction2istener O .2abel jlb,jlna,jle,,jlpr,jlst,resN .Te,t&ield jtna,jte,,jtpr,jtstN .#utton jbe,it,jbhmN $ontainer cN $onnection connN reparedStatement pstmtN String email,e,am,fn,ln,name,per,stN :esult(String eml,String e,! O emailPemlN e,amPe,N try O $lass.for@ame(Bsun.jdbc.odbc..dbc7dbc3riverB!N connP3riverManager.get$onnection(Bjdbc9odbc9+,amSuiteB,BB,BB!N pstmtPconn.prepareStatement(Bselect M from registration where emailP 6B!N pstmt.setString(>,email!N :esultSet rsPpstmt.e,ecute=uery(!N while(rs.ne,t(!! O fnPrs.getString(BfnameB!N lnPrs.getString(BlnameB!N R
pstmtPconn.prepareStatement(Bselect M from result where emailP 6 and e,amP6B!N pstmt.setString(>,email!N pstmt.setString(0,e,am!N rsPpstmt.e,ecute=uery(!N while(rs.ne,t(!! O perPrs.getString(BpercentB!N stPrs.getString(BstatusB!N R R catch($lass@ot&ound+,ception e! O System.out.println(Bclass not e,ceptionB!N R catch(S=2+,ception e! O System.out.println(Bs5l e,ceptionB!N R namePfnFB BFlnN this.set3efault$lose7peration(.&rame.+A"TT7@T$27S+!N R public void set8p(! O cPget$ontent ane(!N setSi(e(G??,Q??!N setTitle(B+,am SuiteB!N c.set#ackground($olor.white!N c.set2ayout(null!N jlbPnew .2abel(new "mage"con(Buit.jpgB!!N jlb.set#ounds(?,?,G??,>0?!N resPnew .2abel(B:+S82TB!N res.set#ounds(D??,><?,>0?,/?!N jlnaPnew .2abel(B@ameB!N jlna.set#ounds(0C?,0/?,>0?,/?!N jtnaPnew .Te,t&ield(name!N jtna.set#ounds(DD?,0/?,>0?,/?!N
jle,Pnew .2abel(B+,amB!N jle,.set#ounds(0C?,0G?,>0?,/?!N jte,Pnew .Te,t&ield(e,am!N jte,.set#ounds(DD?,0G?,>0?,/?!N jlprPnew .2abel(B ercentageB!N jlpr.set#ounds(0C?,/<?,>0?,/?!N jtprPnew .Te,t&ield(perFB[B!N jtpr.set#ounds(DD?,/<?,>0?,/?!N jlstPnew .2abel(BStatusB!N jlst.set#ounds(0C?,D>?,>0?,/?!N jtstPnew .Te,t&ield(st!N jtst.set#ounds(DD?,D>?,>0?,/?! jbe,itPnew .#utton(B+,itB!N jbe,it.set#ounds(0C?,<??,>??,/?! jbhmPnew .#utton(B2ogoutB!N jbhm.set#ounds(DC?,<??,>??,/?! c.add (res!Nc.add(jlb!N c.add(jlna!N c.add (jtna!N c.add(jle,!N c.add(jte,!N c.add (jlpr!N c.add (jtpr!N c.add (jlst!N c.add (jtst!N c.add(jbe,it!N c.add (jbhm!N jbe,it.add%ction2istener(this!N jbhm.add%ction2istener(this!N set;isible (true!N R public void action erformed(%ction +vent ae! O String sPae.get%ction$ommand (!N if (s.e5uals(B+,itB!! System.e,it (?!N if (s.e5uals (B2ogoutB!! O new 2og&om(!.setup(!N set;isible(false!N dispose (!NRRR
SCREEN S.OTS
CONC/?SION
The Exam Suite is a great improvement over the manual system like hand written e,ams. The computeri(ation of the system has speed up the process and it is time consuming. "t is very difficult to keep answer papers and all such things. The system was thoroughly checked and tested with dummy data. The system avoids data redundancy and inconsistency. "t provides security and integrity. 3ata is easily retrieved. Thus the system is user friendly.
,?T?RE EN.ANCE"ENT
The proposed system is purely an +,am Suite we will make this project as online where every customer using their +)mail "3 can view their result detailsN they canJt edit or make changes in their account. %lso, we can include online, updating by the authori(ed person. 1hen making online, +,am procedures and latest news about the +,am will be seen in our software. %ny comments can be included by the user.
RE,ERENCE
Boo0s Ja9a E Com35ete Re2eren4e8 Core Ja9a E Se9ent# Edition by Cay S8 .orstmann and @ary Corne558 Ad9an4ed Ja9a by Ba5a6urus1amy8 Pro6rammin6 usin6 Ja9a by >a9id8 J8 EC$ Ja9a >esi6n Patterns by James D8 Coo3er