DESIGN AND IMPLEMENTATION OF ONLINE EXAMINATION SYSTEM FOR STAFF RECRUITMENT CREDENTIALS TO RUN APPLICATION USER NAME: online PASSWORD; Exams 2014 For the application: visit http://nairaproject.com/softwares/exams.zip ABSTRACT This study was intended to design and implement an online examination system for staff recruitment. This study was undertaken majorly to design and implement an online examination system for staff recruitment. Specific objectives of the study are: To identify the structure/characteristics of an online examination system for staff recruitment, To identify the benefits of an online examination system for the recruitment of staff, To find out the challenges/disadvantages of the adoption of online examination system for the recruitment of staff. Concerning methodology for this study, The data used for the development of the research was gotten from the internet, textbooks and articles. The contributions of other researchers on the subject were examined so as to gather relevant information. The case study also provided useful information for the development of the system. System analysis has to do with examining a system in order to understand its step by step operations so as to identify its benefits and areas of limitation that require improvements. In the existing system, the staff recruitment was still manually achieved, the average results and grading was manually computed. The problems of the existing system includes; it is time consuming, errors in computation is very common, it is inefficient, reports of results cannot be easily retrieved. In the proposed system, staff recruitment for the case study will be carried out effectively on the internet in order to save time and also to bring fairly to qualified candidates. This system will save time, minimize computation errors and also help the staffs to recruit the right personnel for the organization. The system design pertains to the layout of the system and it consists of the input and output layout. Findings from this study revealed that; chances of getting competent employees will significantly increase if organizations should take advantage of the internet and adopt online registration system for the recruitment of staff. This study is that it will bring to light the relevance of adopting online examination system for employee short-listing or e-recruitment system and the need for its adoption by organizations. TABLE OF CONTENTS Title Page - - - - - - - - - Approval Page - - - - - - - - ii Declaration - - - - - - - - iii Dedication - - - - - - - - - Acknowledgement - - - - - - - v Abstract - - - - - - - - - - - - - - - vii - - - - - - Table of Contents CHAPTER ONE – INTRODUCTION 1.1 Background of the Study - i iv vi 1.0 PRELIMINARIES -- - - - - - 1.1 Statement of Problem - - - - - - - - - - - - - 1.4 Significance of the study - - - - - - 1.5 Scope of the Study - - - - - - - - - - -- - - - - - - - - - - - 1.3 Objectives of the study -- 1.6 Organization of Research 1.7 Definition of Terms - - CHAPTER TWO LITERATURE REVIEW 2.0 Introduction - 2.1 The Need for Employee Recruitment Using Online Examination - - - - - - - - - - 2.3 The Concept of Online Examination - - 2.4 System Structure/Characteristics of Online Exams - - 2.5Advantages of Using Online Examination System for Employee Recruitment - - - - - - - - - - - - - - - 2.6Disadvantages of Using Online Examination for Employee Recruitment - - - 2.2 Steps involved in Employee recruitment -- - - - - CHAPTER THREE SYSTEM ANALYSIS AND DESIGN 3.0 Introduction - - - - - - - 3.1 Research Methodology - - - - - - 3.2 System Analysis - - - - - 3.2.1 Analysis of the existing system - - - - 3.2.2 Problems of the existing system - - - - 3.2.3 Analysis of the proposed system - - - - - - - 3.2.3.2 Disadvantages of the Proposed System - - - -- 3.2.3.1 Advantages of the proposed system 3.3 System Design -- - - - - - 3.3.1 Input Layout - - - - - - - - - - - - - - - - - - - 3.3.2 Program Flowchart 3.3.3 Output Format - - CHAPTER FOUR SYSTEM IMPLEMENTATION AND DOCUMENTATION 4.0 Introduction - - - - - - 4.1 System Design Diagram - - 4.2 Choice of Programming Language 4.3 Programming Environment 4.5 System Implementation - - - - - - - - - - - -- - - - - - CHAPTER FIVE SUMMARY, CONCLUSION AND RECOMMENDATION (S) 5.0 Introduction - - 5.1 Constraints of the study - - - 5.2 Summary - - 5.3 Conclusion - - 5.4 Recommendations - - APPENDIX B OBJECT CODE - - - - - - - - References - - - - - - - - - - Appendix - - - - - - - - - CHAPTER ONE - - - INTRODUCTION/BACKGROUND OF THE STUDY 1.0 PRELIMINARIES An online examinationsystem for recruitment of staff is a web application that establishes a network between the organization and applicants. The organization enters on the site the questions they want in the exam. These questions aredisplayed as a test to the eligible students. The answers inputted by the applicants are then evaluatedand their score is calculated and saved. This score then can be accessed by the inst to determine the passes students or to evaluate their performance.Online Exams System provides the platform but does not directly participate in, nor is itinvolved in any tests conducted. Questions are posted not by the site, but users of the site. According to Yu, Hsiao and Cho (2014), online examinations are convenient, and fast. Online examination has three main purposes: 1. To allow test-takers at different places to take the test at the same time through the online examination website. 2. Through careful planning and proper coding, enable tests, grading and to check results on the website. 3. To integrate database with the program, allowing teachers easy addition of questions and creation of tests. The formulation of questions for a test is often treated with doubts and suspicions. In a typical online examination system, the questions are strict and set with care. Although the exam questions is in the multiple choice format (objectives), the questions are chosen at random. All students have the same questions but the order of questions is different. Since the order of the question differs on each computer, the motive in students to cheat is reduced. Cheating at examinations is unacceptable. It is common knowledge that people are likely to cheat in a network environment but this is wrong as cheating at examinations is unacceptable as it affects the fairness of an examination. This situation implies that to overcome the tendency to cheat is the major challenge in online examinations. Despite the pitfalls, online examination is very important and useful as it breaks the barrier of distance and different geographical location. Applicants from all over the world can access the system thereby giving the examiners a good chance to identify highly intelligent prospective staff. Every organization is made up of employees, and before employees are recruited, information pertaining to them is obtained, processed and analyzed after they have applied to determine their qualification for employment into a given position. For every position, there are certain skills and qualifications needed. The performance of the individual is a function of employee ability, motivation and opportunity (Boxall & Purcell, 2003). Short-listing of employees also known as Recruitment and selection, forms a core part of the central activities underlying human resource management: namely, the acquisition, development and reward of workers. It forms an important part of the work of human resource managers – or designated specialists within work organizations. It has an important role to play in ensuring worker performance and positive organizational outcomes. It is often claimed that selection of workers occurs not just to replace departing employees or add to a workforce but rather to put in place workers who can perform at a high level and demonstrate commitment. Recruitment is important for organizations since it performs the essential function of drawing an important resource, human capital, into the organization (Boxall & Purcell, 2003; Parry & Tyson, 2008;). It has a strategic aim as it focuses on the need to attract high-quality people in order to gain a competitive advantage (Parry & Tyson, 2008; Malinowski et al, 2005). Recruiting people with the right abilities reinforces the organizational goals (Boxall & Purcell, 2003). Conducting examination before employees are recruited is very important as their level of success in the exams will reflect their level of competence or ability. Online examination widens the spectrum for organizations to reach out to more applicants and to get the best. It is on this premise that this research study is set to examine the design and implementation of an online examination system for recruitment of staff. 1.1 Statement of Problem Many organizations do not have competitive personnel and this negatively affects the productivity and image of the organization. In addition, there is no effective structure to recruit staff that is able to stand up to the responsibility of their duties. Many organizations still adopt the manual method of recruiting and the applicants are limited to those in their immediate environment. Also, many applicants find it difficult to get to the examination centers due to distance and high cost of transportation. Organizations are unable to reach out to a wide spectrum of applicants so as to be able to recruit the best employees. The traditional examination for recruitment is usually characterized by cheating which hampers the credibility of recruited employees. There is need for a more effective system that is able to reach out to a wider spectrum of employees, breaking the barrier of distance and cost and thereby promoting the recruitment of well qualified staff. 1.3 Objectives of the study The following are the objectives of the study; a. To design and implement an online examination system for the recruitment of staff. b. To identify the structure/characteristics of an online examination system for staff recruitment. c. To identify the benefits of an online examination system for the recruitment of staff. d. To find out the challenges/disadvantages of the adoption of online examination system for the recruitment of staff. 1.4 Significance of the study The significance of the study is that it will bring to light the relevance of adopting online examination system for employee short-listing or e-recruitment system and the need for its adoption by organizations. It will help organizations solve the present challenges they are facing in attracting eligible and professional employees by providing a software system that processes the application of different applicants. It will also save them time and cost of recruiting. In addition, other scholars seeking for valuable information on the subject will find this research material relevant. 1.5 Scope of the Study This study covers the design and implementation of an online examination system for the recruitment of staff. 1.6 Organization of Research This research work is organized into five chapters. Chapter one is concerned with the introduction of the research study and it presents the preliminaries, theoretical background, statement of the problem, aim and objectives of the study, significance of the study, scope of the study, organization of the research and definition of terms. Chapter two focuses on the literature review, the contributions of other scholars on the subject matter is discussed. Chapter three is concerned with the system analysis and design. It presents the research methodology used in the development of the system, it analyzes the present system to identify the problems and provides information on the advantages and disadvantages of the proposed system. The system design is also presented in this chapter. Chapter four presents the system implementation and documentation, the choice of programming language, analysis of modules, choice of programming language and system requirements for implementation. Chapter five focuses on the summary, constraints of the study, conclusion and recommendations are provided in this chapter based on the study carried out. 1.7 Definition of Terms Online: Refers to a system connected to the internet that can be accessed remotely from any part of the world. Examination: A test designed to assess somebody's ability or knowledge in a particular subject or field Employment – the condition of working for pay Application - a formal and usually written request for something such as a job, a grant of money, or admission to a school or college Short-list - to put somebody or something on a final list of candidates for a position or award Recruitment - to enroll somebody as a worker or member, or to take on people as workers or members Human resources - the field of business concerned with recruiting and managing employees Management - the organizing and controlling of the affairs of a business or a sector of a business CHAPTER TWO LITERATURE REVIEW 2.0 Introduction This chapter is concerned with the review of related literature, the contributions of other researchers is examined in this chapter. It looks at: The Need for employee recruitment using online examination Steps involved in employee recruitment The concept of online examination System structure/characteristics of online examination Advantages of Using Online Examination System for Employee Recruitment Disadvantages of Using Online Examination for Employee Recruitment 2.1 The Need for Employee Recruitment Using Online Examination Organizations make use of e-recruitment because of several reasons (Chapman & Webster, 2003). These include: 1. Cost Savings 2. Ease of Use for Candidates 3. Larger candidate pool 4. Ease of use for the organisation 5. Increasing the speed to hire 6. Success in finding candidates 7. Keeping ahead of competitors Parry and Tyson (2008) studied the use and success of e-recruitment methods in the UK. They conducted a six-year survey and performed qualitative interviews among HR managers. The survey had 25,224 respondents over the six years, and represented 935 organizations per survey. Interviews were held to supplement the survey data with a more in-depth view. Fifteen qualitative interviews were conducted with senior HR or resourcing managers responsible for recruitment, and five additional interviews were conducted with providers of online recruitment technology. They found from research that cost effectiveness is the most important reason (75%) mentioned by organisations, followed by ease of use for candidates (64%), a larger candidate pool (53%) and ease of use for the organisation (52%). Galanaki (2002) performed a survey among a sample of 99 organisations, of which 34 organisations responded. This research found similar importance regarding reasons to use e-recruitment, like cost effectiveness (46%), wide response rate (46%), reaching a specific niche (42%) and reaching passive job seekers (38%). Pin et al (2001) found, among 167 organisations, additional support for time savings (64%), lower recruitment costs (51%) and 24hrs a day, 7 days a week online (51%). 2.2 Steps involved in Employee recruitment The recruitment process begins with the identification of a vacancy whereafter the recruiter receives authorization to fill in this vacancy (Chapman & Webster, 2003). In order to do so, the vacant job needs to be carefully analyzed. Analyzing the job might include determining the necessary knowledge, skills, and experience required to perform the job appropriately and defining the required specifications. After identifying and analyzing a vacancy, it can be placed in, for example, newspapers or other media sources. Applicants can apply for vacancies by using the internet. Likewise, further correspondence between organization and applicant depends on the internet to a large extent. Cappelli (2001) describes the recruitment process in three steps. First, candidates need to be attracted. This concerns using the organization’s reputation, product image, online technology and other methods to draw as many potential applicants as possible to the organization’s website. On the website, organizations can reinforce their human resources brand and provide information about jobs and working conditions. The second step in this process is sorting applicants. This relates, for example, to employing sophisticated, standardized online tests to screen candidates, and winnowing the applicant pool to a manageable number. Third, the contacts need to be managed quickly. Due to the use of the internet, organizations are able to respond more quickly to a desirable candidate. An e-recruitment process follows ideally from a systematic human resource planning process, whereby an organization analyses and plans for the flow of people into, through, and out of the organisation (Chapman & Webster, 2003). Yet, there is a fourth step, which does not belong necessarily to e-recruitment but to every recruitment process. This concerns closing the deal (Cappelli, 2001). It refers to making the phone call, setting up the meeting and shaking the hand. From this description, one can notice that the e-element is absent. In this way, Cappelli (2001) highlights the importance of the human touch at the end of the recruitment process. According to him, human touch is increasingly neglected in e-recruitment processes but remains very crucial. 2.3 The Concept of Online Examination In future, the internet world will have an even closer relation with our daily lives, online teaching and online examination are the direction towards which the academic circle will move. An online examination syatem does not have the limitation of time and place. Users can arrange their examination time in accordance to the progress of their lesson. Since the test is graded by computers, time which would have been required for manual marking and grading is saved. Test takers can check the test solutions immediately after the test, thus letting candidates know their mistakes and work to correct them 2.4 System Structure/Characteristics of Online Exams Outline below are the characteristics of online examination system: 2.5Advantages of Using Online Examination System for Employee Recruitment It has a strategic significance as it puts emphasis on the need to attract high-quality people in order to gain a competitive advantage (Parry & Tyson, 2008; Malinkowski et al, 2005). “To ensure successful application management for the applicant and for us as the company, it is vital to have a transparent system of job listings and interested candidates. To guarantee transparency, we need an application management system that all personnel departments can efficiently and independently access. It would be impossible to ensure this type of access at a company as large as Deutsche Post World Net with resume folders and e-mail applications. That is why we work strictly with online applications (Website Deutsche Post).” A second outcome of successful implementationonline examination for recruitment concerns productivity benefits of e-recruitment. These are widely discussed in the literature. If erecruitment is successfully implemented, it might lead to efficiency advantages like cost reduction and time saving (Cappelli, 2001) shows that lowering recruitment costs is the number two advantage of e-recruitment. 51 % of their respondents perceived cost savings as an advantage. Time saving include job posting and processing time, which can be reduced by erecruitment (Jones et al, 2002). Job postings, applicant response, and processing of résumés can be done faster (Pin et al, 2001). Next to that, the immediacy of listing reduces the time taken for recruitment to remove quality job candidates from circulation before other competitors have the opportunity to act (Jones et al, 2003). This affects the hiring cycle. Time saving advantages also influence cost reduction. Finally, e-recruitment system quality. Regarding to this construct, interviewees perceived the system to be relevant. The system provides users several tools through which they can perform and structure their recruitment process. The online test or exams is an integral part of the system. The SAP E-recruiting Business Case (2004) describes, among other things, the initially expected benefits of the system. These benefits include, first of all, decreasing recruitment costs by matching supply and demand, proactive recruitment of personnel, decreasing the turnaround time of the recruitment process, and purposeful use of recruitment channels. Secondly, the new system was expected to reduce the turnaround time from 90 to 50 days. Finally, the time spent on resume handling was to be decreased by at least 2.5 hours per resume 2.6 Disadvantages of Using Online Examination for Employee Recruitment Although there are aspects that influenced e-recruitment using online examination in a positive way, the new technology also contributed negatively to the quality of the recruitment process. Due to the increased administrative burden, there is less time left to perform the key activity of recruitment, recruiting potential employees. Another issue concerns the user-friendliness of the system. Because of its time-consuming and cumbersome design, e-recruitment requires users to perform many tasks and to perform illogical work processes. Yet, as recruiters state that this is a disadvantage, they perceive it is more worse that the system is applicant unfriendly. This refers to the system’s extensive nature, to the ease of understanding of the system, and the effort required of applicants. The system is actually programmed and may fail to see other areas of strength the applicants have as opposed to the manual method of recruitment. CHAPTER THREE SYSTEM ANALYSIS AND DESIGN This chapter takes an overviews on the system design and the entire research work, it is important to note that a poorly designed system will equally produce an incorrect output as such this chapter presents a skeletal approach to the design of the entire system. 3.1 Analysis of the present system System analysis has to do with examining a system in order to understand its step by step operations so as to identify its benefits and areas of limitation that require improvements. In the existing system, the staff recruitment was still manually achieved. The average results and grading is manually computed. 3.1.1 Method of operation The system being manual has no technical operation,the applicants pick of a form which is filled, submitted and the recruitment examnation is conducted for that applicant. Scores are gotten from the conducted recruitment examination which is computed manually as well the grading of the applicant. 3.1.2 Design tools of present system The present system is manual and has no design it relies on the intellect of does who do the computing, though spreadsheet applications like Microsoft excel can be use for the computing Characteristics 1. Manual mode of conducting the recruitment examination 2. Manual mode of computing the results of the recruitment examination Advantages 1. Exams could be monitored properly 2 . Cost Savings 3.Ease of Use for Candidates Disadvantages 1. Process taking before admitted for an recruitment examination 3.2 Weakness of the present system The problems of the existing system includes; it is time consuming, errors in computation is very common, it is inefficient, reports of results cannot be easily retrieved. 3.3 Research Methodology A software development methodology or system development methodology is a frame work that is used to structure, plan and control the process of developing an information system. The methodology employed for the development of the system is the spiral development. The spiral development model comprises the elements of both design and prototyping. The model has four stages namely: - Planning - Analysis - Evaluation - Development The data used for the development of the research was gotten from the internet, textbooks and articles. The contributions of other researchers on the subject were examined so as to gather relevant information. The case study also provided useful information for the development of the system. 3.3.1 Sampled population Staff go through a process before they obtain a job in a company, hence having experience recruitment. This staff both does who where successful and does who were not form the sample population. 3.3.2 study hypothesis Staff recruitment can be more efficient with an online recruitment examination system. 3.3.3 Data collection method Data collection method includes investigation of the existing system conduction of interviews and online research consigning the topic 3.4 Design Languages, Tools and techniques of proposed system 3.4.1 Java Java is an object oriented programming language that use to create desktop and web based applications. A lot of applications are design with java 3.5 Analysis of the proposed system The proposed system is such that staff recruitment for the case study will be carried out effectively on the internet in order to save time and also to bring fairly to qualified candidates. 3.5.1 Method of Operation Users of the system would first of all register giving them a user name and password which they can use to log into the system. an exam ID is generated for anybody who will write the recruitment exams 3.5.2 Significance of the proposed system Advantages of the proposed system The advantages of the proposed system include; it will save time, minimize computation errors and also help the staffs to recruit the right personnel for the organization. Disadvantages of the Proposed System The disadvantages of the proposed system includes the following; users must be computer literate, it cannot be used without a computer system and electricity, it is susceptible to virus attack, unauthorized access can be gained to alter information. 3.6 Objectives of proposed system This project is aimed at making job recruitment faster and improve the mode of conducting staff recruitment examination 3.7 Features of the proposed system 3.8 Processing involved in the proposed system 3.9 Cost And Benefit Of The Proposed System 3.10 Design of the proposed system The system design pertains to the layout of the system and it consists of the input and output layout. 3.10.1 Output Design 3.10.2 Input Design The system takes in several inputs including information about the applicant to write the recruitment examination, the question to be asked in the examination and the answers provided by the applicant. Last Name First Name Other Name Qualification Date Of Birth State Of Origin L.G.A Of Origin Phone No. Email Address Cancel Save 3.11 Functionality of the system ( use case diagram ) Registration Write Exam View and update questions Admin View Registration list View Exam Result Fig 3.1 Use Case Diagram 3.12 Data flow Diagram 3.13 Deployment Diagram 3.14 Key Players of the Proposed system The key players of the system includes 1. Software 2. Hardware 3. Data Applicant 4. Procedures 5. poeple 3.15 Findings From the analysis of data presented above, it is quite clear that recruitment and selection exercises in the Public Service are not conducted annually or biannually but when the need arises. The need may arise when people go on retirement, quit the service as a result of gaining better employment elsewhere or due to disciplinary measures. Again, the need may also arise due to some highly placed persons mounting pressure. Due to some political, ethnic or religious consideration. In such cases, vacancies may be created. CHAPTER FOUR IMPLEMENTATION AND DOCUMENTATION This chapter presents the system flow chart, analysis of modules, choice of programming language and programming environment. 4.1 System Design Diagram MENU REGISTRATION ADMIN EXIT EXAMINATION LOGIN CANCEL START EXAMS SUBMIT CLOSE CLOSE 4.1 SYSTEM SPECIFICATION EXAMS RESULT YES UPDATE QUESTIONS CLOSE NO The system specification used for the development of the application is windows 7 operating system. The hardware requirements are; - Pentium iv computer system - Super video graphic array monitor - 512 MB RAM - Keyboard - Mouse - Uninterruptible power supply (UPS) The software requirements are: - Microsoft Visual Basic 6.0 - Microsoft Access 2003 4.2 JUSTIFICATION OF PROGRAMMING LANGUAGE USED The programming language chosen for the development of the system is visual basic 6.0. The language was chosen because it enables the creation of applications with a graphical user interface, containing controls such as text fields, combo box, labels, command buttons etc. TEST RUN Implementation is the process of replacing the old system with the new system. There are four different ways of replacing the old system with the new system. The reasons for choosing one implementation type over another depend upon; how quickly must the changeover happen? How important is it to prevent data loss? What will the cost of the changeover be? Direct changeover: In this system the old system is no longer available and everything must run on the new system. Problems with the new system can cause major problems for the business, only suitable for non-critical systems. Phased implementation: Takes longer to complete the implementation but the risks to the business are less than for direct changeover. The new system can be split into separate working parts e.g. sales, marketing, payroll etc. part of the old system is replaced with the new one until the replaced part is working properly. Continue the process until the entire old system has been replaced by the new system. Parallel Running: Highly fault tolerant, new system and the old system are used with extra staffs recruited to run the new system but it is very expensive. Both systems continue to run until the new system is working properly then the old one is discarded. Pilot Running: If the business has many different offices or sites then this is an option. One single site is chosen and the old system is replaced with the new system in the same way as direct changeover but only on one site, the rest of the business continue to use the old system. Once the new system is shown to work well in that one ‘pilot’ site then the new system can replace the old one in the rest of the company. The system implementation method recommended and chosen by the system developer is the parallel running so as to prevent data loss. CHAPTER FIVE SUMMARY, CONCLUSION AND RECOMMENDATION (S) 5.0 Introduction This chapter presents the summary, conclusion, constraints of the study and offers useful recommendations. 5.1 Constraints of the study In carrying out the research work, some challenges were faced that limited the study such as: Time: The time given for the completion of the research work was too short hence the researcher had speed up the research work to meet up and this has an impact on the study. Limited Materials: few materials were found pertaining to the research area and this limited the bulk of the literature review. Finance: The high cost of textbooks, internet browsing and transportation to different libraries to gather materials stood as a constraint to the research work. 5.2 Summary Recruitment and selection of staff, forms a core part of the central activities underlying human resource management and it involves: namely, the acquisition, development and reward of workers. It forms an important part of the work of human resource managers – or designated specialists within work organizations. It has an important role to play in ensuring worker performance and positive organizational outcomes. Basically, for an organization to get competent employees they need to be tested. Organizations have taken advantage of the internet to aid their recruitment process. Online examination system for recruitment of staff is a web application that establishes a network between the organization and applicants. The organization enters on the site the questions they want in the exam. These questions are displayed as a test to the eligible applicants. The results of the test or exam is computed and displayed in real time. 5.3 Conclusion It is very important for organizations to take advantage of the internet and adopt online examination system for the recruitment of staff. This will increase their chances of getting competent employees and also eliminate the barrier of distance and bias in recruitment of employees. 5.4 Recommendations The following recommendations are made based on the findings of the research work: - IT professionals such as computer programmers, web designers and database administrators should be employed. - Recruitment of staff should be computerized - Professionals experienced in the development of online recruitment and examination systems should be consulted for guidelines. - Staff in the recruitment unit should be sent for advanced training to learn how to develop and maintain online examination system for staff recruitment. REFERENCES Alavi, M., &Leidner, D. (1999). Knowledge management systems: Issues, challenges, and benefits, Communications of the Association for Information Systems, 1(7). Balcı, A. (2004). Sosyalbilimlerdearaştırma: Yöntem, teknikveilkeler, Ankara: Pegem. Beadles, N. A., Lowery, C. M., & Johns, K. (2005). The impact of human resource information systems: An exploratory study in the public sector, Communication of the IIMA, 5(4), pp. 39–46. Curtis, G., &Cobham, D. (2002). Business information systems. London, UK: Pearson. Dessler, G. (2005) Human Resource Management, 10.ed., USA: Prentice Hall. Haag, S., & Cummings, M. (2008). Management information systems for the information age. New York, USA: McGraw Hill. Hendrickson, A. R. (2003). Human resource information systems: Backbone technology of contemporary human resources, Journal of Labour Research, 24(3), pp. 381–394. Gürol, Y., Wolff, A., &ErtemsirBerkin, E . (2010). E-HRM in Turkey: A case study. In I. Lee (Ed.), Encyclopedia of E-Business Development and Management in theGlobal Economy, pp. 530–540. Karakanian, M. (2000). Are human resources departments ready for E-HR? Information Systems Management, 17(4), pp.1–5. Kalaycı, Ş. (Ed.). (2005) SPSS uygulamalıçokdeğişkenliistatistikteknikleri. AsilYayınDağıtım. Keim, T., &Weitzel, T. (2009). An adoption and diffusion perspective on HRIS usage. In T. Coronas & M. Oliva (Ed.), Encyclopedia of Human Resources Information Systems: Challenges in E-HRM (pp. 18–23). Hershey, PA: IGI Global. Kulik,C. T., & Perry, E. L. (2008) When less is more: The effect of devolution on HR’s strategic Role and Donstrued Image, Human Resource Management, 47(3), pp.541–558. Ankara: PROGRAM FLOWCHART APPENDIX A START START Main menu options: Registration, Exam, Admin, Exit Is option Registration? YES RG NO Is option Exam? YES EX NO YES Is option Admin? NO NO RG Is option Exit? YES Stop AD Is option Submit? YES Save record to database NO YES Is option Cancel? Cancel out existing entries NO Is option Close? YES START EX Is password and exam Id correct? Save scores to database YES Start exams NO YES START Is option Close? APPENDIX B OBJECT CODE @ APPENDIX C SOURCE CODE HTML CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> <style type="text/css"> .auto-style1 { background-color: #FFFFFF; } .auto-style2 { background-color: #090908; } .auto-style3 { background-color: #BEBEB9; } .auto-style4 { margin-right: 0px; background-color: #B79A8E; } .auto-style5 { text-decoration: none; } .auto-style6 { font-size: large; } .auto-style7 { color: #FFFFFF; } .auto-style8 { color: #FFFFFF; font-size: xx-large; } .auto-style9 { margin-top: 0px; } </style> </head> <body> <p>&nbsp;</p> <div id="layer1" class="auto-style1" style="position: absolute; width: 1345px; height: 116px; zindex: 1; left: 0px; top: -7px"> </div> <div id="layer2" class="auto-style2" style="position: absolute; width: 1344px; height: 48px; zindex: 2; left: 0px; top: 105px"> </div> <div id="layer3" class="auto-style3" style="position: absolute; width: 1346px; height: 334px; zindex: 3; left: -2px; top: 149px"> </div> <div id="layer4" class="auto-style4" style="position: absolute; width: 1344px; height: 174px; zindex: 4; left: 1px; top: 478px"> </div> <div id="layer5" style="position: absolute; width: 47px; height: 23px; z-index: 5; left: 184px; top: 120px" class="auto-style6"> <a href="exam.html" class="auto-style5"><strong><span class="autostyle7">Home</span></strong></a></div> <div id="layer6" style="position: absolute; width: 102px; height: 23px; z-index: 6; left: 301px; top: 120px" class="auto-style6"> <a href="Online_exam/Registration.exe" class="auto-style5"><strong> <span class="auto-style7">Registration</span></strong></a></div> <div id="layer7" style="position: absolute; width: 44px; height: 21px; z-index: 7; left: 470px; top: 119px" class="auto-style6"> <a href="Online_exam/exams.exe" class="auto-style5"><strong> <span class="auto-style7">Exam</span></strong></a></div> <div id="layer8" style="position: absolute; width: 62px; height: 19px; z-index: 8; left: 593px; top: 120px" class="auto-style6"> <a href="Online_exam/admin.exe" class="auto-style5"><strong> <span class="auto-style7">Admin</span></strong></a></div> <div id="layer9" class="auto-style8" style="position: absolute; width: 413px; height: 127px; zindex: 9; left: 126px; top: 260px"> <strong>Design And Implementation of An Online Examination for Staff Recruitment System</strong></div> <div id="layer10" style="position: absolute; width: 755px; height: 118px; z-index: 10; left: -3px; top: -15px"> <img alt="" height="119" src="images/imyddages.jpg" width="758" /></div> <div id="layer11" style="position: absolute; width: 601px; height: 125px; z-index: 11; left: 743px; top: -18px"> <img alt="" class="auto-style9" height="119" src="images/imagyjges.jpg" width="599" /></div> <div id="layer12" style="position: absolute; width: 244px; height: 321px; z-index: 12; left: 1090px; top: 152px"> <img alt="" height="320" src="images/images.jpg" width="245" /></div> <div id="layer13" style="position: absolute; width: 575px; height: 162px; z-index: 13; left: 623px; top: 485px"> <img alt="" height="153" src="images/imagennbs.jpg" width="480" /></div> <div id="layer14" style="position: absolute; width: 425px; height: 160px; z-index: 14; left: 227px; top: 485px"> <img alt="" height="154" src="images/imvxvccages.jpg" width="396" /></div> </body> </html> JAVA CODE /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * qdb.java * * Created on 16-Aug-2014, 09:25:31 */ package dbase; import java.awt.Window; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.sql.ResultSet; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableRowSorter; /** * * @author Ukana */ public class qdb extends javax.swing.JFrame { Connection con; Statement stmt; ResultSetrs; intcurRow = 0; /** Creates new form qdb */ public qdb() { initComponents(); DoConnect(); } //rs.next( ); rs.first( ); String eq1 = rs.getString("q1"); String eq2 = rs.getString("q2"); String eq3 = rs.getString("q3"); String eq4 = rs.getString("q4"); String eq5 = rs.getString("q5"); String eq6 = rs.getString("q6"); String eq7 = rs.getString("q7"); String eq8 = rs.getString("q8"); String eq9 = rs.getString("q9"); String eq10 = rs.getString("q10"); String ea1 = rs.getString("a1"); String ea2 = rs.getString("a2"); String ea3 = rs.getString("a3"); String ea4 = rs.getString("a4"); String ea5 = rs.getString("a5"); String ea6 = rs.getString("a6"); String ea7 = rs.getString("a7"); String ea8 = rs.getString("a8"); String ea9 = rs.getString("a9"); String ea10 = rs.getString("a10"); a1.setText(ea1); a2.setText(ea2); a3.setText(ea3); a4.setText(ea4); a5.setText(ea5); a6.setText(ea6); a7.setText(ea7); a8.setText(ea8); a9.setText(ea9); a10.setText(ea10); //rs.insertRow( ); stmt.close( ); rs.close( ); con.close(); } catch (SQLException ex) { System.out.println("Connect failed ! "); } ////option b ========================================== try { Connection con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT b1, b2, b3, b4, b5, b6, b7, b8, b9, b10 FROM optionb"; rs = stmt.executeQuery( SQL ); //rs.next( ); rs.first( ); String eb1 = rs.getString("b1"); String eb2 = rs.getString("b2"); String eb3 = rs.getString("b3"); String eb4 = rs.getString("b4"); String eb5 = rs.getString("b5"); String eb6 = rs.getString("b6"); String eb7 = rs.getString("b7"); String eb8 = rs.getString("b8"); String eb9 = rs.getString("b9"); String eb10 = rs.getString("b10"); b1.setText(eb1); b2.setText(eb2); b3.setText(eb3); b4.setText(eb4); b5.setText(eb5); b6.setText(eb6); b7.setText(eb7); b8.setText(eb8); b9.setText(eb9); b10.setText(eb10); //rs.insertRow( ); stmt.close( ); rs.close( ); con.close(); } catch (SQLException ex) { System.out.println("Connect failed ! "); } //////option c ==================================================== try { Connection con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT c1, c2, c3, c4, c5, c6, c7, c8, c9, c10 FROM optionc"; rs = stmt.executeQuery( SQL ); //rs.next( ); rs.first( ); String ec1 = rs.getString("c1"); String ec2 = rs.getString("c2"); String ec3 = rs.getString("c3"); String ec4 = rs.getString("c4"); String ec5 = rs.getString("c5"); String ec6 = rs.getString("c6"); String ec7 = rs.getString("c7"); String ec8 = rs.getString("c8"); String ec9 = rs.getString("c9"); String ec10 = rs.getString("c10"); c1.setText(ec1); c2.setText(ec2); c3.setText(ec3); c4.setText(ec4); c5.setText(ec5); c6.setText(ec6); c7.setText(ec7); c8.setText(ec8); c9.setText(ec9); c10.setText(ec10); //rs.insertRow( ); stmt.close( ); rs.close( ); con.close(); } catch (SQLException ex) { System.out.println("Connect failed ! "); } } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEventevt) { formWindowActivated(evt); } }); jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(16777216,true), 6)); jLabel18.setText("b."); jLabel19.setText("a."); jLabel20.setText("c."); jLabel21.setText("b."); jLabel22.setText("a."); jLabel23.setText("c."); jLabel24.setText("b."); jLabel25.setText("a."); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING ) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(8, 8, 8)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING ) .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(a1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addComponent(jLabel11) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE) .addComponent(jLabel12) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(c1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(q1, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE) .addComponent(q2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE) .addComponent(q3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE) .addComponent(q4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE) .addComponent(q5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 468, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(33, 33, 33) .addComponent(jLabel17) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) , ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(20, 20, 20) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addGap(26, 26, 26) SIZE) .addComponent(jLabel13) .addComponent(jLabel11) .addComponent(jLabel12)) .addGap(32, 32, 32) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addGap(28, 28, 28) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16) .addComponent(jLabel14) .addComponent(jLabel15)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)) .addGap(35, 35, 35) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel17) .addComponent(jLabel18) .addComponent(jLabel19)) .addGap(30, 30, 30) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addGap(38, 38, 38) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel20) .addComponent(jLabel21) .addComponent(jLabel22)) .addGap(38, 38, 38) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel5)) .addGap(32, 32, 32) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel23) .addComponent(jLabel24) .addComponent(jLabel25)) .addGap(45, 45, 45)) ); jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(16777216,true), 6)); jLabel6.setText("6. "); jLabel7.setText("7."); jLabel8.setText("8."); jLabel9.setText("9."); jLabel10.setText("10."); jLabel26.setText("a."); jLabel27.setText("c."); jLabel28.setText("b."); jLabel29.setText("b."); jLabel30.setText("b."); jLabel31.setText("b."); jLabel32.setText("b."); jLabel33.setText("c."); jLabel34.setText("c."); jLabel35.setText("c."); jLabel36.setText("c."); jLabel37.setText("a."); jLabel38.setText("a."); jLabel39.setText("a."); jLabel40.setText("a."); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING ) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(12, 12, 12)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING ) .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel38) .addComponent(jLabel39) .addComponent(jLabel40)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel26) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel37) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(a10, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addComponent(jLabel32) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(b10, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(32, 32, 32) .addComponent(jLabel33) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(c10, javax.swing.GroupLayout.DEFAULT_SIZE, 148, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(a6, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(29, 29, 29) .addComponent(jLabel28) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(b6, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(33, 33, 33) .addComponent(jLabel27) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(c6, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)) .addComponent(q6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) .addComponent(q7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) .addComponent(q8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) .addComponent(q9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) .addComponent(q10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(a9, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addComponent(jLabel31) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(b9, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(33, 33, 33) .addComponent(jLabel34) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(c9, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(a8, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(30, 30, 30) .addComponent(jLabel30) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(b8, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(33, 33, 33) .addComponent(jLabel35) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(c8, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(a7, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28) .addComponent(jLabel29) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(b7, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(33, 33, 33) .addComponent(jLabel36) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(c7, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE))) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(20, 20, 20) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6)) .addGap(26, 26, 26) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel27) .addComponent(jLabel28)) .addGap(32, 32, 32) .addComponent(q7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel29) .addComponent(jLabel36) .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addGap(33, 33, 33) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel30) .addComponent(jLabel35) .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(32, 32, 32) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(q9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9)) .addGap(34, 34, 34) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN E) .addComponent(c9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(a9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(b9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel31) .addComponent(jLabel34) .addComponent(jLabel39, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton8))) .addContainerGap(16, Short.MAX_VALUE)) ); java.awt.DimensionscreenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize(); setBounds((screenSize.width-1225)/2, (screenSize.height-663)/2, 1225, 663); }// </editor-fold> private void jButton5ActionPerformed(java.awt.event.ActionEventevt) { // TODO add your handling code here: new resultdb().setVisible(true); private void jButton1ActionPerformed(java.awt.event.ActionEventevt) { String connectionURL = "jdbc:derby:onlinedb/exams"; try { con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT q1, q2, q3, q4, q5, q6, q7, q8, q9, q10 FROM questions"; rs = stmt.executeQuery( SQL ); rs.moveToInsertRow( ); rs.updateString("q1", c1.getText()); rs.updateString("q2", c2.getText()); rs.updateString("q3", c3.getText()); rs.updateString("q4", c4.getText()); rs.updateString("q5", c5.getText()); rs.updateString("q6", c6.getText()); rs.updateString("q7", c7.getText()); rs.updateString("q8", c8.getText()); rs.updateString("q9", c9.getText()); rs.updateString("q10", c10.getText()); rs.insertRow( ); stmt.close( ); rs.close( ); JOptionPane.showMessageDialog(qdb.this, "Saved"); } catch (SQLException err) { System.out.println(err.getMessage() ); } } private void jButton6ActionPerformed(java.awt.event.ActionEventevt) { // TODO add your handling code here: String connectionURL = "jdbc:derby:onlinedb/exams"; String createString = "CREATE TABLE exscores (exam_idvarchar(100), name varchar(100), escore varchar(100))"; try { con = DriverManager.getConnection(connectionURL); if (con != null){ //con = DriverManager.getConnection(connectionURL); Statement stmt = con.createStatement(); stmt.executeUpdate(createString); System.out.println("Connected to database- exams"); } } catch (SQLException ex) { System.out.println("Connect failed ! "); } } private void jButton2ActionPerformed(java.awt.event.ActionEventevt) { // TODO add your handling code here: String connectionURL = "jdbc:derby:onlinedb/exams"; //queations ================================================ try { Connection con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT q1, q2, q3, q4, q5, q6, q7, q8, q9, q10 FROM questions"; rs = stmt.executeQuery( SQL ); //rs.next( ); String qq1 = q1.getText(); String qq2 = q2.getText(); String qq3 = q3.getText(); String qq4 = q4.getText(); String qq5 = q5.getText(); String qq6 = q6.getText(); String qq7 = q7.getText(); String qq8 = q8.getText(); String qq9 = q9.getText(); String qq10 = q10.getText(); //int rid = rs.getRow(); //intrrid = rid + 1; rs.first(); rs.updateString("q1", qq1); rs.updateString("q2", qq2); rs.updateString("q3", qq3); rs.updateString("q4", qq4); rs.updateString("q5", qq5); rs.updateString("q6", qq6); rs.updateString("q7", qq7); rs.updateString("q8", qq8); rs.updateString("q9", qq9); rs.updateString("q10", qq10); rs.updateRow( ); stmt.close(); rs.close(); //con.close(); //JOptionPane.showMessageDialog(qdb.this, "Updated"); } catch (SQLException err) { System.out.println(err.getMessage() ); } // OPTION A ================================================ try { Connection con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 FROM optiona"; rs = stmt.executeQuery( SQL ); //rs.next( ); String aa1 = a1.getText(); String aa2 = a2.getText(); String aa3 = a3.getText(); String aa4 = a4.getText(); String aa5 = a5.getText(); String aa6 = a6.getText(); String aa7 = a7.getText(); String aa8 = a8.getText(); String aa9 = a9.getText(); String aa10 = a10.getText(); //int rid = rs.getRow(); //intrrid = rid + 1; rs.first(); rs.updateString("a9", aa9); rs.updateString("a10", aa10); rs.updateRow( ); stmt.close(); rs.close(); //con.close(); //JOptionPane.showMessageDialog(qdb.this, "Updated"); } catch (SQLException err) { System.out.println(err.getMessage() ); } // OPTION B ===================================================== try { ); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT b1, b2, b3, b4, b5, b6, b7, b8, b9, b10 FROM optionb"; rs = stmt.executeQuery( SQL ); //rs.next( ); String bb1 = b1.getText(); String bb2 = b2.getText(); String bb3 = b3.getText(); //int rid = rs.getRow(); //intrrid = rid + 1; rs.updateString("b10", bb10); rs.updateRow( ); stmt.close(); rs.close(); //con.close(); //JOptionPane.showMessageDialog(qdb.this, "Updated"); } catch (SQLException err) { System.out.println(err.getMessage() ); } //OPTION C ========================================= try { Connection con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT c1, c2, c3, c4, c5, c6, c7, c8, c9, c10 FROM optionc"; rs = stmt.executeQuery( SQL ); //rs.next( ); String cc1 = c1.getText(); String cc2 = c2.getText(); String cc3 = c3.getText(); String cc4 = c4.getText(); String cc5 = c5.getText(); String cc6 = c6.getText(); String cc7 = c7.getText(); String cc8 = c8.getText(); String cc9 = c9.getText(); String cc10 = c10.getText(); //int rid = rs.getRow(); //intrrid = rid + 1; rs.first(); rs.updateString("c1", cc1); rs.updateString("c2", cc2); rs.updateString("c3", cc3); rs.updateString("c4", cc4); rs.updateString("c5", cc5); rs.updateString("c6", cc6); rs.updateString("c7", cc7); rs.updateString("c8", cc8); rs.updateString("c9", cc9); rs.updateString("c10", cc10); rs.updateRow( ); stmt.close(); rs.close(); //con.close(); JOptionPane.showMessageDialog(qdb.this, "Updated"); } catch (SQLException err) { System.out.println(err.getMessage() ); } } private void jButton3ActionPerformed(java.awt.event.ActionEventevt) { // TODO add your handling code here: try { //stmt.close(); //rs.close(); Connection con = DriverManager.getConnection(connectionURL); stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE ); String SQL = "SELECT name, address, phone_no, email, quali, gender, dob, password, exam_id FROM rct1"; rs = stmt.executeQuery( SQL ); DefaultTableModel model = new DefaultTableModel(); model.addColumn("NAME"); model.addColumn("ADDRESS"); model.addColumn("PHONE_NO"); model.addColumn("EMAIL"); model.addColumn("QUALIFICATION"); model.addColumn("GENDER"); model.addColumn("DOB"); model.addColumn("PASSWORD"); model.addColumn("EXAM_ID"); while ( rs.next( ) ) { model.addRow(new Object[] { ename, eaddress, ephone, eemail, equali, egender, edob, epword, eexam }); } JFrame f = new JFrame(); f.setSize(1200, 300); f.add(new JScrollPane(table)); f.setVisible(true); //Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); f.setLocationRelativeTo(null); //f.setLocation(dim.width/2 - f.getSize().width/2, dim.height/2 - f.getSize().height); try { if (! table.print()) { System.err.println("User cancelled printing"); } } catch (java.awt.print.PrinterException e) { System.err.format("Cannot print %s%n", e.getMessage()); } //else { //rs.previous( ); //JOptionPane.showMessageDialog(dbform.this, "End of File"); //} } catch (SQLException err) { JOptionPane.showMessageDialog(qdb.this, err.getMessage()); } } private void jButton7ActionPerformed(java.awt.event.ActionEventevt) { // TODO add your handling code here: String connectionURL = "jdbc:derby:onlinedb/exams;create=true"; try { con = DriverManager.getConnection(connectionURL); if (con != null){ System.out.println("Connected to database- uksoft"); } } catch (SQLException ex) { System.out.println("Connect failed ! "); } } private void jButton4ActionPerformed(java.awt.event.ActionEventevt) { // TODO add your handling code here: new form2().setVisible(true); } private void formWindowActivated(java.awt.event.WindowEventevt) {