sport project development

102
WISCONSIN INTERNATIONAL UNIVERSITY COLLEGE, GHANA DEPARTMENT OF INFORMATION TECHNOLOGY DESIGN AND IMPLEMENTATION OF SPORTS MANAGEMENT SYSTEM (SMS) (A CASE OF ACHIMOTA SCHOOL) BY OJOBOR HELEN WIUC/01/1196 & ADEDEJI FEYISAYO WIUC/01/1227 A RESEARCH PROJECT SUBMITTED TO THE DEPARTMENT OF INFORMATION TECHNOLOGY, WISCONSIN INTERNATIONAL UNIVERSITY COLLEGE, GHANA IN PARTIAL FULFILMENT OF THE REQUIREMENT FOR THE AWARD OF BARCHELOR OF ARTS DEGREE IN COMPUTER SCIENCE AND MANAGEMENT JUNE 2014 i

description

project work

Transcript of sport project development

WISCONSIN INTERNATIONAL UNIVERSITY COLLEGE, GHANA DEPARTMENT OF INFORMATION TECHNOLOGYDESIGN AND IMPLEMENTATION OF SPORTS MANAGEMENT SYSTEM (SMS)(A CASE OF ACHIMOTA SCHOOL)BYOJOBOR HELENWIUC/01/1196&ADEDEJI FEYISAYOWIUC/01/1227A RESEARCH PROJECT SUBMITTED TO THE DEPARTMENT OF INFORMATION TECHNOLOGY, WISCONSIN INTERNATIONAL UNIVERSITY COLLEGE, GHANA IN PARTIAL FULFILMENT OF THE REQUIREMENT FOR THE AWARD OF BARCHELOR OF ARTS DEGREE IN COMPUTER SCIENCE AND MANAGEMENTJUNE 2014

DECLARATIONWe, Ojobor Helen and Adedeji Feyisayo, do hereby declare that this project work is as a result of our research, and to the best of our knowledge, it contains material previously published by another person or material which has been accepted for the award of degree of the university, except where acknowledgement has been made in the text. All references cited for this study has been made in text. All references cited for this study have dully been acknowledged.OJOBOR HELEN(WIUC/01/1196)Signature: -------------------------------Date: --------------------------------------ADEDEJI FEYISAYO(WIUC/01/1227)Signature: -------------------------------Date: --------------------------------------

Signature Date --------------------------------------------------------------------------------MRS MAUD ADJELEY ASHONG ELLIOT (Supervisor)DEDICATIONWe dedicate this work to God Almighty, for without him this work couldnt have been accomplished.We also dedicate this work to our parents, Mr & Mrs Ojobor, Mr & Mrs Adedeji, friends and family for their continuous support and faith they have in us to see us till this level. We love and appreciate your efforts.

ACKNOWLEDGEMENTOur sincere gratitude to God almighty, who made life available to us to make it till this time, also, for His love, mercy and grace to come this far, it couldnt have been anyone else.We also extend our gratitude to our parents, siblings, and loved ones whom God used to bring us to this level, we thank them so much for their financial and moral support and also for their prayers.To our supervisor, Mrs Maud Adjeley Ashong Elliot, We appreciate her endless effort, her constructive criticism and correction she gave to us to make this work wat it is today.A very big thanks you to Mr Derrick of IT Department, for his continuous and selfless support, and for making himself available whenever we needed him, we also appreciate Mr Nathaniel Mills for his support towards the completion of this work.Also to the staffs of Achimota School, we appreciate your support and release of information that aided this work.We do not forget our colleagues (WCOM May 2014 Batch), and everyone who has contributed one way or the other to this work. We say God richly bless you.

ABSTRACTAs the name specifies SPORTS MANAGEMENT SYSTEM is a software developed for managing sports activities in Achimota school. For the past few years the numbers of educational institutions are increasing rapidly. Thereby the number of sports are also increasing for students studying in the school. And hence there is a lot of strain on the person who is in charge of manually entering the records of the sports activities in the school and this manual way has been a big problem in the school. This particular project deals with problems on managing the sports activities in Achimota School and avoids the problems which occur when carrying it out manually. Identification of drawbacks of the existing system leads to designing a computerized system that will be compactible to the existing system. The system which is more user-friendly and more graphical user interface oriented. We can improve the efficiency of the system, thereby, overcoming the drawbacks of the existing system.

Table of ContentsDECLARATIONiiDEDICATIONiiiACKNOWLEDGEMENTivABSTRACTvCHAPTER ONE1INTRODCUTION11.1 Background11.1.1 Brief history of the case11.2Statement of the problem21.2.1 Duplication of Records of Data21.2.2Delay in retrieval of information21.2.3Difficulty in Tracking of sports men, women and sport managers when they are out of school31.2.4Loss of Records of Data31.2.5Lack of Security (sportsmen and managements Records)31.3Challenges sportsmen and management face due to Manual System31.3.1Registration of student31.3.2Shelving of records:41.3.3 Sport Men, Women and management registration41.4 General objectives of proposed system41.5 Specific objectives of the proposed system51.6 Research questions51.7 Significance of the study51.8 Scope of the study61.9Limitations of the study61.91 Definition of terms7CHAPTER TWO8LITERATURE REVIEW82.1 Definition of sports82.2 Etymology92.3 Nomenclature92.4 Game and definitions102.5 Competition112.6 History of sports122.7 Fair play132.7. 1 Sportsmanship132.7.2 Cheating132.7.3 Doping and drugs142.7.4 Violence142.8 Sports management system14CHAPTER THREE17METHODOLOGY AND DESIGN173.1 Introduction173.2The system development life cycle (waterfall model)173.2.1Development stage183.2.2Source of Data203.2.3PROGRAMMING LANGUAGE213.3SYSTEM ANALYSIS213.3.1THE CURRENT SYSTEM213.3.2 THE PROPOSED SYSTEM223.4FEASIBILITY ANALYSIS243.4.1 OPERATIONAL FEASIBILITY253.4.2 ECONOMIC FEASIBILITY253.4.3 Technical Feasibility263.4.4 Schedule Feasibility273.5 Data Collection283.6 Data Analysis283.8 Table design293.9 Keys and Relationships between the Tables293.10 PROJECT DETAILS303.10.1 Structured Query Language303.10.2 COMPUTER HARDWARE AND SOFTWARE30CHAPTER FOUR33TESTING AND DEPLOYMENT334.1 INTRODUCTION334.2 FEATURES OF THE SYSTEM334.2.1 HOME SCREEN334.2.2 LOGIN SCREEN344.2.3 LOGIN REGISTRATION FORM354.2.4 TOURNAMENT DETAIL FORM364.2.5 GAMES AND PLAYERS FORM374.2.6 INSTALL SHIELD WIZARD FORM384.2.7 INSTALL SHIELD WIZARD FORM394.2.8 INSTALL SHIELD WIZARD FORM40CHAPTER FIVE41SUMMARY, RECOMMENDATION AND CONCLUSION415.1 SUMMARY415.2 RECOMMENDATION425.3 CONCLUSION42References43APPENDIX45

v

CHAPTER ONEINTRODCUTION1.1 Background1.1.1 Brief history of the caseAchimota School (formerly Prince of Wales School Achimota, nicknamed Motown, is a co-educational boarding schoollocated atAchimotainAccra,Greater Accra, Ghana. The school was founded in 1924 by SirFrederick Gordon Guggisberg, Dr.James Emman Kwegyir AggreyandRev. Alexander (Alec) Garden Fraser. It was formally opened in 1927 by Sir Frederick, then Governor of the BritishGold Coastcolony. The school has educated many African leaders, includingKwame Nkrumah,Edward Akufo-Addo,Jerry John Rawlings, andJohn Evans Atta Millsall of whom are formerHeads of State of Ghana. The currentPresident of Ghana,John Dramani Mahama, is also an alumnus of Achimota School. FormerPrime Minister of GhanaDr.Kofi Abrefa Busiataught at Achimota. Also included in its list of African heads of state areZimbabwepresidentRobert Mugabeand SirDawda Jawara, first head of state ofThe Gambia. An alumnus/alumna of Achimota is known as an "Akora".(http://wikipedia.com)

The motto of the school isUt Omnes Unum Sintmeaning "That all may be one", a reference to the founders' expressed philosophy that starting in the context of school life, black and white, male and female, everyone should integrate and combine synergistically for the good of all. The stylised piano-key design of the Achimota School crest was described by Aggrey at the time: "You can play a tune of sorts on the black keys only; and you can play a tune of sorts on the white keys only; but for perfect harmony, you must use both the black and the white keys".The backbone of every organization is its I.T support. Currently, Motown has a manual system which manages sports and all the activities that involves sports. On the other hand, all this practice is done manually. There is therefore a need to computerize this sports management system to improve sport management in the school. (http://wikipedia.com)

1.2Statement of the problemSince the establishment of Achimota School in the year 1927 till date, the sports department uses a manual system when transacting its day-to-day operations. The record keeping of data on the sports men and women who take part in sporting activities for school, the registration of new members, updates on sporting events and other activities are done manually. However there are several problems associated with the existing manual system.These problems are as follows:1.2.1 Duplication of Records of DataWith the manual system, a sport man or woman can be registered one or two times without noticing and causes the sports management cost. Hence, this leads to the duplication of data.1.2.2Delay in retrieval of informationAs a result duplication of data, it is very difficult to retrieve information and this takes a great deal of time. The registration forms must be searched through one after the other until the needed record is found.1.2.3Difficulty in Tracking of sports men, women and sport managers when they are out of school Information concerning sports Sport Men and Women and managers are difficult to track if the records keeping book cannot be found. Also, the book does not contain enough information about the sports men, women and their managers such as phone number and residential address and this makes it very difficult to track these heroes and heroine of the school in times of need.1.2.4Loss of Records of DataInformation concerning the sports men, women and mangers and registration of new able sports men is hand written on sheets and kept for referencing and future use. These sheets can easily get lost or mixed up and this will increase the duties of record in case they need to search for records concerning a particular sports men or managers.1.2.5Lack of Security (sportsmen and managements Records)Most of the records of the workers and student are currently kept at the front desk for easy referencing by the record staff of the sport school. This way anybody can easily have access to the records and this makes them unsecured especially when the record is to leave the front desk for a while.1.3Challenges sportsmen and management face due to Manual SystemAside these problems, the manual system poses several challenges to student and the staff of the School. These challenges are explained below.1.3.1Registration of student Achimota School, registration of sports men and women is done manually. When new Sport Men and Women arrive, they are registered on sheets of papers called a work form which carries all needed information about Sport Men and Women. Information recorded concerning each book is listed below: Name of student Age of student Gender sports Date of Birth1.3.2Shelving of records: After the recording of the details of the Sport Men and Women, they are shelved according to the department and index number of the Sport Men and Women. Shelves are done according to letter and number; to help identify shelve number where a particular book is found. 1.3.3 Sport Men, Women and management registrationDuring a new academic year, Sport Men and Women register by filling the students registration form. Sport Men and Women register their respective disciplines. 1.4 General objectives of proposed system The general objective and significance of the proposed system is the development of sports management system that can be used for the record management, registration of Sport Men, Women, management, and sporting events in the Achimota School.

1.5 Specific objectives of the proposed systemThe specific objectives of this system are mentioned below: To make information like sport events easily accessible to Sport Men and Women. To enhance the administrative staff (records) to easily retrieve information concerning Sport Men and Women and manage To try to reduce the probability of inconsistency To improve backup and recovery service To equip the security of the data.

1.6 Research questionsI. How do we equip the se curity of the data?II. How to improve back up on recovery servicesIII. What do we need to enhance the administrative staff(records) to easily retrieve information

1.7 Significance of the studyThe above research is of much relevance or use to Achimota School in Ghana as well as staff and Sport Men and Women of the institution for effective decision making in the area of records management in educational institution. It could also be an effective database for reference both educational institution and non-educational institution.

1.8 Scope of the studyOur study is on Achimota School in Ghana as well as staff and Sport Men and Women of the institution. The following aspect of the School administration is been computerized: Registry Records department Updates of sports events

1.9Limitations of the study. The managements, staffs and the senior prefects were not always available for the interview. Poor access to the internet on campus.

1.91 Definition of termsTable 1.1Attribute:A property that describes an Entity or a specification that defines a property of an object, element, or file. It may also refer to or set the specific value for a given instance of such.Author : The originator of any written work.Address: The physical location of a building or where a person residesEntity Relationship Diagram (ERD):A data modelling toolRelationship:A set of meaningful associations among entities. Entity: A distinct object represented in the databaseDatabase: An organized collection of data or integrated collection of data records, files, and other database objects DBMS : A software package with computer programs that control the creation, maintenance, and the use of a database RDBMSA DBMS in which data is stored in tables and the relationships among the data are also stored in tables.Foreign Key:A set of attributes within a relation that matches the primary key of some other relationO.A.A: Old Achimotan Association

Definition of termsCHAPTER TWOLITERATURE REVIEW2.1 Definition of sportsSport(orsports) is all forms of usuallycompetitivephysical activitywhich,through casual or organized participation, aim to use, maintain or improve physical ability and skills while providingentertainmentto participants, and in some cases, spectators. Hundreds of sports exist, from those requiring only two participants, through to those with hundreds of simultaneous participants, either inteamsor competing as individuals.Sport is generally recognized as activities which are based in physicalathleticismor physicaldexterity, with the largest major competitions such as theOlympic Gamesadmitting only sports meeting this definition, and other organizations such as the Council of Europeusing definitions precluding activities without a physical element from classification as sports.However, a number of competitive, but non-physical, activities claim recognition asmind sports. The International Olympic Committee (throughARISF) recognizes bothchessandbridgeasbona-fidesports, andSport Accord, the international sports federation association, recognizes five non-physical sports, although limits the amount of mind games which can be admitted as sports. (Georgia: International Association of Tourists and Travelers School)Sports are usually governed by a set ofrulesorcustoms, which serve to ensure fair competition, and allow consistent adjudication of the winner. Winning can be determined by physical events such as scoringgoalsor crossing a line first, or by the determination of judges who are scoring elements of the sporting performance, including objective or subjective measures such as technical performance or artistic impression.In organized sport, records of performance are often kept, and for popular sports, this information may be widely announced or reported in sport news. In addition, sport is a major source of entertainment for non-participants, withspectator sportdrawing large crowds to venues, and reaching wider audiences throughbroadcasting.According to A.T. Kearney, a consultancy, the global sporting industry is worth up to $620 billion as of 2013. 2.2 Etymology"Sport" comes from theOld Frenchdesportmeaning "leisure", with the oldest definition in English from around 1300 being "anything humans find amusing or entertaining".Other meanings include gambling and events staged for the purpose of gambling; hunting; and games and diversions, including ones that require exercise.Roget's defines the noun sport as an "activity engaged in for relaxation and amusement" with synonyms including diversion and recreation.

2.3 NomenclatureThe singular term "sport" is used in most English dialects to describe the overall concept (e.g. "children taking part in sport"), with "sports" used to describe multiple activities (e.g. "football and rugby are the most popular sports in England"). American English uses "sports" for both terms2.4 Game and definitionsThe precise definition of what separates a sport from other leisure activities varies between sources. The closest to an international agreement on a definition is provided bySport Accord, which is the association for all the largest international sports federations (including association football,athletics,cycling,tennis,equestrian sportsand more), and is therefore thede factorepresentative of international sport.( Kenneth, C. Loudon & Jane, P.Loudon (2010). Management Information Systems. USA: John willey & Sons Inc)Sport Accord uses the following criteria, determining that a sport should: have an element of competition be in no way harmful to any living creature not rely on equipment provided by a single supplier (excluding proprietary games such asarena football) not rely on any "luck" element specifically designed into the sportThey also recognize that sport can be primarily physical (such asrugbyorathletics), primarily mind (such aschessorgo), predominantly motorized (such asFormula 1orpower boating), primarily co-ordination (such asbilliard sports), or primarily animal-supported (such as equestrian). There has been an increase in the application of the term "sport" to a wider set of non-physical challenges such aselectronic sports, especially due to the large scale of participation and organized competition, but these are not widely recognized by mainstream sports organizations.2.5 CompetitionThere are opposing views on the necessity ofcompetitionas a defining element of a sport, with almost allprofessional sportinvolving competition, and governing bodies requiring competition as a prerequisite of recognition by the International Olympic Committee (IOC) or Sport Accord. Other bodies advocate widening the definition of sport to include all physical activity. For instance, theCouncil of Europeincludes all forms of physical exercise, including those completed just for fun.In order to widen participation, and reduce the impact of losing on less able participants, there has been an introduction of non-competitive physical activity to traditionally competitive events such as schoolsports days, although moves like this are often controversial. In competitive events, participants are graded or classified based on their "result" and often divided into groups of comparable performance, (e.g. gender, weight and age). For each group, the first in the list will usually be the "winner". The measurement of the result may be objective or subjective, and corrected with "handicaps" or penalties. In a race, for example, the time to complete the course is an objective measurement. Ingymnasticsordivingthe result is decided by a panel of judges, and therefore subjective. There are many shades in between, like boxing or mixed martial arts, where victory is assigned by judges if neither competitor has lost at the end of the match time. (http://wikipedia.com)

2.6 History of sportsThere are artifacts and structures that suggest that theChineseengaged in sporting activities as early as 2000 BC.Gymnastics appears to have been a popular sport in China's ancient past. Monuments to the Pharaohs indicate that a number of sports, including swimming and fishing, were well-developed and regulated several thousands of years ago in ancient Egypt.Other Egyptian sports included javelin throwing, high jump, and wrestling. Ancient Persian sports such as the traditionalIranianmartial art ofZourkhanehhad a close connection to the warfare skills.Among the sports that originate in ancientPersiaarepoloandjousting.Motorized sportshave appeared since the advent of the modern ageA wide range of sports were already established by the time ofAncient Greeceand the military culture and the development of sports in Greece influenced one another considerably. Sports became such a prominent part of their culture that the Greeks created the Olympic Games, which in ancient times were held every four years in a small village in thePeloponnesuscalledOlympia. Sports have been increasingly organized and regulated from the time of the ancient Olympics up to the present century. Industrialization has brought increased leisure time to the citizens of developed and developing countries, leading to more time for citizens to attend and follow spectator sports, greater participation in athletic activities, and increased accessibility. These trends continued with the advent of mass media and global communication. Professionalism became prevalent, further adding to the increase in sport's popularity, as sports fans began following the exploits of professional athletes through radio, television, and the internet all while enjoying the exercise and competition associated with amateur participation in sports. (http://wikipedia.com)

2.7 Fair play 2.7. 1 SportsmanshipSportsmanship is an attitude that strives for fair play, courtesy toward teammates and opponents, ethical behavior and integrity, and grace in victory or defeat.Sportsmanship expresses an aspiration or ethos that the activity will be enjoyed for its own sake. The well-known sentiment by sports journalistGrant land Rice that it's "not that you won or lost but how you played the game", and the modern Olympic creed expressed by its founderPierre de Coubertin: "The most important thing is not winning but taking part" are typical expressions of this sentiment. (http://wikipedia.com)

2.7.2 CheatingKey principles of sport include that the result should not be predetermined, and that both sides should have equal opportunity to win. Rules are in place to ensure that fair play to occur, but participants can break these rules in order to gain advantage.Participants may choose to cheat in order to satisfy their desire to win, or in order to achieve an ulterior motive. The widespread existence ofgamblingon the results of sports fixtures creates the motivation formatch fixing, where a participant or participants deliberately work to ensure a given outcome. (http://google.com)

2.7.3 Doping and drugsThe competitive nature of sport encourages some participants to attempt to enhance their performance through the use of medicines, or through other means such as increasing the volume of blood in their bodies through artificial means.All sports recognized by the IOC or Sport Accord are required to implement a testing programmer, looking for a list of banned drugs, with suspensions or bans being placed on participants who test positive for banned substances. (http://wikipedia.com)2.7.4 ViolenceViolence in sportsinvolves crossing the line between fair competition and intentional aggressive violence. Athletes, coaches, fans, and parents sometimes unleash violent behavior on people or property, in misguided shows of loyalty, dominance, anger, or celebration.Riotingorhooliganismis common and ongoing problems at national and international sporting contests. (http://wikipedia.com)

2.8 Sports management systemA sport management system is a database system used to manage sports men, women, management and update of sports events on the sports calendar.Database Systems are designed to store large bodies of information. Both the definition of structure for the storage of information and the provision of a mechanism for manipulation of information are inclusive.For the purpose of the database system which is been shared by several users, the system avoids possible anomalous results. The primary purpose of a database system is to provide users with an abstract view of the data and that the system should hide certain details of how the data are stored and maintained. (Silberschatz, Korthon Sunorshan, 1999).A computer has been a very powerful tool for sports which providing management access to information about sports and other sporting activities. (Murdock, 1995)Countless number of databases has been developed by professionals to see to the day to day activities which include the problems faced every day. According to Begg (2005), databases are accessed in supermarkets when buying goods. For this reason, the check-out assistant uses the bar code reader to scan purchased item which is linked to an application program. This application program uses the bar code reader to find all the prices of the item from a product database. It simultaneously reduces the number of such items in stock and display the price on the cash register.Beggs further talked about the use of database by travel agent to search for information or make enquiries. All the necessary booking arrangement when a person books for holiday is accurately done by the database system. The database system ensures that two different people do not book the same holiday or over book the seats on the flight. In most circumstances, the travelling agency may have another database for invoicing.There are also library databases that are created with details of the books in a library, the readers, reservations and other activities. These databases contain a computerized index that allows readers to find a book based on its title or its subject area.The database also handles reservation to allow a reader reserve a book and to be informed by mail when the book is available and also send reminders to borrowers who have failed to return books by the due date. These systems have bar code reader similar to that of the supermarket described earlier by Begg (2005), used to monitor the to and fro movement of books in and out of the library.The systems mentioned above are already developed in use for various purposes. There have been a couple of developments associated with the sports management systems. The sport management system which is being designed and developed will involve sites for readers with the purpose of research for information. (http://wikipedia.com)

CHAPTER THREEMETHODOLOGY AND DESIGN3.1 IntroductionThis section is simply to describe how we would gather our information, the programming language and the database we would use to create the proposed system3.2The system development life cycle (waterfall model)System development cycle is a conceptual model that describes the stage involved in an information system development project, from an initial feasibility study through the maintenance of the completed application.

Fig 3.1: SDLC DIAGRAMSource: Conrad Weisert (water fall methodology)

3.2.1Development stageThe system development is divided into four major phases which describes the methodology used in this research. They are; System planning System analysis System design System implementationThe development of the project started when one identifies the user and objectives of the project. The in house prototype was designed based on the suggestion of customers and workers of the fashion house. Phases of analysis, design and implementation were performed iteratively until used and designed (the project team) agreed on a final system specification. This point, the final stage is the implementation phase.The advantage of this approach was that a draft system could be provided to users to interact quickly. The user was lightly involved in every phase of the project and feedback during the process furthered our understanding of the system requirement and objectives and helped us avoid potential problems. Since they participated in the process of analysis, design and implementation, the users were more likely to be satisfied with the final system. (http://wikipedia.com)

3.2.1.1System planningThe first stage was project initiation. The objective of the software was to enable Sport Men and Women and management to view details of sports activities at a particular time and improve its consistency. We also determined the features of the system needed for such a database and which way we could achieve it. The key objective for this project was to develop a database platform that effectively manage and run the sports. The project team determines a work plan during the planning phase. (Design work, 2014)3.2.1.2System analysisUnder this stage investigating of processes and determining what the new system perform in accordance with the objective achieved. This is achieved through the adoption of a fact finding technique which are interview and observation. To build a user centered system what the team determined in the analysis phase which the fact finding technique, interview and observation where the target. After a comprehensive user analysis, potential users were listed as follows: Sport Men and Women Students of Achimota Teachers Achimota schools prefects House masters/ mistress Senior house mistress/ master Assistant house Master East compound Assistant house Master West compound Administrators Managers

3.2.1.3DATABASE DESIGN The next step was to examine the existing School database and comparing it to model the database which was identifies based on the iterative review of effective database design technique. The design of the database interface The result of the database User friendly requirementThe fact finding technique was adopted as follows: It is more personal and familiar It provides staff, management and customers the opportunity to make suggestion3.2.2Source of Data Data was collected from the Achimota School. The objective of this project is to solve the problems pertaining to the Achimota hence it is appropriate to use the School as the source of data.3.2.2.1Methods of InterviewSport Men and Women, Student of Achimota, teacher, Achimota Schools perfects, house master or mistress, senior house mistress or master, assistant house master East Compound, Assistant house master west, administrators and sports managers were interviewed to find out the functions they would like hence the software is developed.From personal observation, we have identified major problems and the possible needed solutions the School needs in order to provide reliable, consistent and adequate services for customers and software where identified.From the information gathered, the appropriate activities to develop the management system are:3.2.3Programming languageWe used MySQL and visual basic to design the software.The proposed computer software intends to go through the formal severity or rigors of professional software development life cycle. The system life cycle defines two main steps: System Analysis Table Design 3.3System analysisThere are two parts of this section: analysing the current system and analysing the new system.3.3.1The current system3.3.1.1 TasksThe current system is a manual system which helps to perform the following tasks: Registration process: Persons are made to fill membership forms manually every semester. Sport Men and Women records: the records of all sports are kept in books are shelved in the library. Updates on sporting events for the school calendar are all pasted on the notice board. Outcomes of Sporting activities are announced at the dining hall.

3.3.1.2 Problems facedSome of the problems being faced in the current manual system are as follows: Report Generation: Fast report generation is not possible. Rodent chewing documents in the storage location Duplication of data Data inconsistency

3.3.2 The proposed systemThe proposed computer- based system is intended to accomplish the above mentioned tasks with the following added features;FeaturesSecure data entry; the system has one entering point to the application (the log in screen) and two entering points to the database, which through the application or form. For a user to access the application the user need the right authentication. The authorized user who has access is given certain task to perform. This task tells the application which processes to initiate at a given time. An administrator who has universal right enforces rights to every other user. His access right includes addition and removal of application users. Other users is been made to have partial administrative rights, which exclude the right to add or remove users.

The ability to accept all types of data entry for records; this includes numeric, alphabets and alphanumeric data type. Numeric data entry lays emphasis on figures only. On the other hand, alphabetical data entry accepts letters and other symbols. The combination of letters, symbols and figures is known as alphanumeric data entry.

Restrictions: There are restrictions which prevents users form going into the platform of other users. For instances, a student cannot enter the member of staff platform and neither can a member of staff have access to the platform of a teacher or a student. This would be done by means of entering a username and password before one can gain access to the system.

Time Elapse: The system would be able to check the time one user entered the system and when he or she exit.

User Friendly: The computer-based proposed system is user friendly. The user would be able to use the system without any difficulty.

3.3.2.2 Benefits of the proposed systemThe Proposed System provides the following benefits: It provides "better and efficient" service to users. It reduces the workload of employees (Admin staff, sports men and teacher). Faster retrieval of information about any sports event, sports men and women and also sports management member. A facility with proper management reduces paper work and provides data security. Updates of sports Events Updates on sports men, women and sports management

3.4Feasibility analysisA system request must pass several tests to see whether it is worthwhile to proceed further. A feasibility study uses four main yardsticks to measure a proposal: Operational Feasibility, technical feasibility, economic feasibility and schedule feasibility.

3.4.1 Operational feasibilityOperational Feasibility means that a proposed system is been used effectively after its development. If users have difficulty with a new system, it does not produce the expected benefits. Operational feasibility depends on several vital issues which are listed below: The proposed system is supported by the headmistress and Old Achimota Association in order to help reduce the work load on the staff and student body of Achimota School. The proposed system causes no harm because it only help increase the efficiency of the School. The system is affordable and has low operational cost because it requires no special equipment other than a normal computer. The new system requires training of users. For which Achimota School and the O.A.A would be prepared to sponsor workers for the training exercise.

3.4.2 Economic feasibilityEconomic feasibility means that the project benefits of proposed system outweigh the estimated cost usually considered the total cost of Ownership (TCO) which includes ongoing system support and maintenance costs as well as acquisition cost. To determine TCO, we estimate costs in each of the following areas: The tools and technologies used for the system are free for non-commercial development purposes. Most of them are licensed under Microsoft Corporation. Most of the software and hardware components were provided by the school especially lecturers in relation to the software. In addition we assessed tangible and intangible benefits to the institution. Tangible benefits are benefits that can be measured in monetary terms. Intangible benefits are advantages that are difficult to measure in monetary terms but are important to the company. For instance, a user friendly system that improves employee job satisfaction is an intangible benefit.

3.4.3 Technical Feasibility Technical feasibility involves determining whether or not a system can actually be constructed to solve the problem at hand. The following points are considered for the projects technical feasibility: The required technologies (rule based and case based reasoning techniques, programming languages and architecture) exist. The proposed system provides adequate response to inquiries regardless of the number or location of users. This is because the system is internal and the application server is considerably sufficient to support the number of users. Ease of access is guaranteed but the technical guarantees of accuracy and reliability depend upon the data that is been collected.

3.4.4 Schedule Feasibility Schedule Feasibility means that a project can be implemented in an acceptable time frame. When assessing schedule feasibility, we consider the interaction between time and cost. The project estimated period is presented in the table below:

Table 3.1IDTask NameStartFinishDuration

1Collecting and Analysis of Data12/02/201419/01/20147 days

2System Analysis and Preparation20/02/201430/02/201410days

3System Design25/02/201401/03/201419days

4Coding05/03/201427/04/201458 days

5Testing28/04/201405/05/20147 days

6Maintenance07/05/201417/05/201410 days

7Efficiency Performance testing20/05/201206/06/201214 days

Source: Design work (2014)3.5 Data CollectionThe research involves a series of interviews targeted at Achimota School. The interview approach was considered to provide the interviewee an opportunity to discuss issues that has provided unique insights into the phenomenon of an electronic database system to help to develop the School system.3.6 Data AnalysisData collected from the interview then analysed to determine the major issues at hand, outlining the problems that need to be solved, and tailoring a system that will efficiently and effectively fix those problems to meet the needs of the users.

Fig 3.2 Chat representing the interview (Achimota School, 17th May, 2014)Source: Design work (2014)3.8 Table designMy Structured Query Language was used in creating tables with their appropriate data type, forms, queries and reports. The tables created with their entities are as follows;3.8.1Table best: sport, name, School name, age3.8.2 Table tour: tour number, tournament, date, and venue3.8.3Table streg: serial number, name, School name, sport, date of birth, age, gender3.8.3Table registration: identity, username, and password3.9 Keys and Relationships between the TablesThe picture below shows the relationship created among tables to link the various tables together for easy query.

Fig 3.3: E.R diagramSource: Design work(2014)The best Table has the primary key sports ID and all other tables are linked with it through the foreign key sports ID.3.10 Project details 3.10.1 Structured Query LanguageThis Relational Database Management System (RDMS) was chosen in order to create an On- The- Go Application that does not need network protocol such as TCP to establish connections PostgreSQL.This Structure Query Language helps you to store data safely and efficiently and allows easy access to that data for viewing and modification. The data with its base along with its associated data entry on the client machine therefore issues such as network latency is avoided.Since The DBMS is relational, the tables in the database have relations and indexes that encourage quick searches and effective in section into the database. Access is very simple to use and be used in many applications. For this, it can be used for both the front and backend of the DBMS.3.10.2 Computer hardware and software HardwareFor the sports management system to function there is the need for the acquisition of the hardware component. ComputersCurrently the School has only twenty computers that can be accessed by Sport Men and Women, administration staff, lecturers and professors. Considering the number of student, there is the need to acquire fifty (50) or more computers to see to the needs of the Sport Men and Women. We have acquired more computers; the system has been installed on each of them. Backup Computers There is a need for a backup to make duplicate of the contents of the hard disk just in case there are unforeseen occurrences of accidents the backup can always be there for purpose. A PrinterIf there is the need for hard copies or print outs of information stored or typed in the system, the printer will be to print the documents. Uninterruptible Power Supply (UPS)This is needed to supply a continuous supply of electricity or electric power when utility power is not available to prevent data lost and also allows the computer to shut down properly to prevent any unnecessary complications.

3.10.3 Software Structured query languageSQL is an open source database management system that runs under windows and other platforms. It was developed by Michael Widenius, and owned and sponsored by MySQL AB, a Swedish based software company founded in 1995 .MySQL is now owned by Oracle Corporation since 2010. The database server we used in this course is SQL A database server enables users to process data stored in a database. Without a database server, it is impossible to look at data in the database or to update or delete obsolete data. The database server alone knows where and how data is stored. There are some third-party graphic user interfaces (GUIs) available as front ends to SQL, but generally they are commercial products that must be purchased separately. It is the responsibility of the database server to store data persistently in the database and to maintain the integrity of the data. Visual Basic. NETVisual Basic (VB) is a widely used programming language developed by Microsoft and based on earlier BASIC implementations such as QBasic/QuickBasic. Visual Basic like other modern programming languages allows us to collect a data type and its associated operations into a single entity called an object. It is thus called an object-oriented programming language. On-OOP Languages, like C & COBOL, treat data and operations as separate parts of the program.Visual Basic.NET was chosen and used because of the short time frame associated with the development of this project.Aside this, it is easier to use and understand and does not run on the internet unlike the .NET programming language.

CHAPTER FOURTESTING AND DEPLOYMENT4.1 IntroductionThis section tests the system that has been developed through the step by phase of the form main page to exit page to the final phase depending on the phase where the user decides to end. This system is to be used by the sports Department of the Achimota School.4.2 Features of the system4.2.1 Home screen

Fig 4.1 Home ScreenSource: Design work (2014)This is the very first screen on the system after a user has login with password and username. It is made of five ribbons: master, games, level, logout and exit.

4.2.2 Login screen

Fig 4.2: Login ScreenSource: Design work (2014)

The login screen grants the user of the system access into the system. There are two textboxes as already seen; username and password. The user would be required to enter his username and password into the appropriate text boxes. The login screen also has two buttons. A click on the login button helps sign the user into the system provided he enters the required details above, and the rest button reset the system.

4.2.3 Login registration formThe system has a login registration form as shown below:

Fig 4.3: Login registration FormSource: Design work (2014)This form allows the administrator to register, update and delete username and passwords of users.

4.2.4 Tournament detail formThis form is used to add, delete and update details of a tournament. It includes tournament, date and venue.Figure 4.4 below shows the diagram:

Fig 4.4: Tournament Detail formSource: Design work (2014)

4.2.5 Games and players formThis form is used to record games and players details. This is seen in the fig 4.5 below:

Fig 4.5: Games and players formSource: Design work (2014)4.2.6 Install shield wizard form

Fig 4.6: Install shield wizard formSource: Design work (2014)This is the first screen when you are installing the set up. The user can click on next to continue or cancel the installation4.2.7 Install shield wizard form

Fig 4.7: installation wizardSource: Design work (2014)This is the part of the installation where the end user accepts or do not accepts the terms in the license agreement.

4.2.8 Install shield wizard form

Fig 4.8: Install shield wizard formSource: Design work (2014)This is the last part of installation. The user clicks on first then installation is done.CHAPTER FIVESUMMARY, RECOMMENDATION AND CONCLUSION5.1 SUMMARY The Sports Management System is an electronic system designed for the sport department of Achimota School.The system is a user friendly system which aims at reducing the stress and problems the workers of school face in carrying out their day to day activities with the manual system being used. The sports management system does record management, registration of Sport Men, Women, management, and sporting events in the Achimota School. For data collection, we interviewed Sport Men and Women, Student of Achimota, teacher, Achimota Schools perfects, house master or mistress, senior house mistress or master, assistant house master East Compound, Assistant house master west, administrators, sports manager and some Akora( Old student) of Achimota School. The system was designed using Visual Studio for the interface and MySQL for the back end.In designing this system, we faced certain challenges. Some of which was the short time allocated for carrying out the project and the difficulty in accessing the internet connectivity on campus which impeded our research ability to an extent.

5.2 RECOMMENDATIONWe suggest that the time frame provided for a project like the sports management system should be extended. This would allow the student to give out their best and yield the best of resultsIn addition with research methods, a special lecture or workshop should be arranged to broaden the understanding of project work and what it entails. Currently, there are twenty computers at Achimota School. There is the need therefore to acquire more computers to see to the needs of Sport Men and Women and staff that use the sports management system for their various research and projects.

5.3 CONCLUSIONThe sport management system goes a long way to solve the problems of the manual system.When this system was being designed or developed, the problems faced by users concerning the existing system and all the problems as at the time were taken into consideration.The system is designed in such a way that it can take large amount of data hence if the users population increases, the system still functions efficiently and effectively

ReferencesA. S. Hornby; (1989) - Oxford Advanced Learners Dictionary Fourth EditionAn old one (1748) advice to a young tradesmanAna M Novoa, Katherine Prez, Elena Santamaria-Rubio & Carme Borrell (2011) Effect on road traffic injuries of criminalizing road traffic offences: a timeseries studyBegg C. & Connolly T. (2005) Database SystemsBrain, K. Williams & Stacey, C. Sawyer (2001) Using Information Technology. USA: McGraw-Hill Companies Inc,Conolly & Begg (2010).Concept of Database SystemCorley & Reed (1987) Law.Dwumfour Abdullai Abdul-Aziz (2013) Database Management SystemJere W. Morehead,O. Lee Reed, Peter J. Shedd (2008) The Legal and Regulatory Environment of Business.Kenneth, C. Loudon & Jane, P.Loudon (2010). Management Information Systems. USA: John willey & Sons IncKevin Tatroe, Peter MacIntyre and Rasmus Lerdorp (2013) Programming with PHPKlint Finley (2011) w3schools. http://www.w3schools.com/tags/tag_meta.asp.Martha Nkrumah, MTTU Ghana Police Service , Madina Headquarters.Martin Prigmore (2008) A Introduction to Databases with Web Application.Mr. Alex Abebrese, Head of Management Information System (MIS) Driver & Vehicle License Authority, GhanaMrs Cynthia Alorbi, Greater-Accra Regional Manager. Driver & Vehicle License Authority, GhanaRay Villalobos (2013) Lynda Validating & Processing Forms With JavaScript And PHP V413HAV Reed, Shedd, Morehead and Pagnattaro (2008) Legistrative Instrument.Retrieved (2013), from Spy Ghana www.spyghana.com/spot-fines-for-traffic-offences-under-piloting/Retrieved from Ghana News Link www.ghananewslink.com/more/index.phpRetrieved from http://en.wikipedia.org/wiki/Schema_(psychology)Retrieved from http://www.who.int/bulletin/volumes/89/6/10-082180/en/Retrieved from Lawdonut www.lawdonut.co.uk/law/personal-law/traffic-offences/traffic-offencesRetrieved from wikipedia.org/wiki/Opportunity_cost.Rob, Peter & Colonel, Caros (1997). Databse System Design and Implementation.Robert N.Corley, O. Lee Reed (1987) The Legal Environment of Business 7th Edition.Silver et al. (1995) Information systemSusan Allen Mills et al (2001)- Cambridge International Dictionary of EnglishThomas Connolly & Carolyn Begg (2010) Database Systems: A Practical Approach to Design, Implementation and Management.Williams C (1983) Decision Support System Database Model Oriented User. New York: Petroceli Books.

APPENDIXMODULE

Imports System.DataImports System.Data.SqlClientModule Module1 Public conn As New ADODB.Connection Public rs As New ADODB.Recordset Public rss As New ADODB.Recordset Public sql As String Public server1 As String Public database1 As String Public user1 As String Public password1 As String Public oid As String Public sid As String Public d As Date Public dt As String Public route As String

Public con As New SqlConnection("Server=SNH-PC;Database=Sports Management;Trusted_Connection=True") Public i As Integer Public Function opendb()

If conn.State = 1 Then conn.Close() conn.Open("Provider=SQLOLEDB.1;Data Source=SNH-PC;Initial Catalog=Sports Management;Integrated Security=SSPI") Return 0 End Function

Public Sub SetConnection(Optional ByVal Firstcomp As Boolean = False) Dim str As String str = "Data Source=SNH-PC;Initial Catalog=Sports Management;" Try If IsNothing(con) = False Then If con.State = ConnectionState.Closed Then con.Close() End If End If con = New SqlConnection(str) con.Open() Catch ex As System.Exception MsgBox(ex.Message) MsgBox("Not Connecting to Database Server.Please check your network.") End Try End SubEnd Module

frmLoginPublic Class frmlogin1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox1.Text = "" Then MsgBox("Enter usertype") ElseIf txtname.Text = "" Then MsgBox("Enter the username") ElseIf txtpass.Text = "" Then MsgBox("Enter the password") Else sql = "select * from tbl_reg where usertype='" & ComboBox1.Text & "' and username='" & txtname.Text & "' and password='" & txtpass.Text & "'" If rs.State = 1 Then rs.Close() rs.Open(sql, conn) If rs.EOF = False Then

If ComboBox1.Text = "ADMIN" Then

Me.Hide() frmwelcome.Show() 'ComboBox1.SelectedIndex = -1 'txtname.Text = "" txtpass.Text = ""

ElseIf ComboBox1.Text = "EMPLOYEE" Then Me.Hide()

'menuform.PAYROLLToolStripMenuItem.Visible = False frmwelcome.MASTERToolStripMenuItem.Visible = False ' frmwelcome.REPORTSToolStripMenuItem.Visible = False frmwelcome.Show() 'ComboBox1.SelectedIndex = -1 'txtname.Text = "" txtpass.Text = "" End If

Else MsgBox("Login Failed") End If End If

End Sub

Private Sub frmlogin1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load opendb()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click clear()

End Sub Sub clear() ComboBox1.SelectedIndex = -1 txtname.Text = "" txtpass.Text = ""

End SubEnd Class

MAINPublic Class frmwelcome

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click pnlgames.Hide()

End Sub

Private Sub GAMESToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GAMESToolStripMenuItem.Click pnlgames.Show()

End Sub

Private Sub frmwelcome_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load pnlgames.Hide()

End Sub

Private Sub PLAYERSToolStripMenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAYERSToolStripMenuItem3.Click frmbad.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem4.Click frmbadtour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAYERSToolStripMenuItem4.Click frmbasket.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem5.Click frmbaskettour.Show()

End Sub

Private Sub COLLEGEToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles COLLEGEToolStripMenuItem.Click frmcollege.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAYERSToolStripMenuItem5.Click frmcplyr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem6.Click frmcrtour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAYERSToolStripMenuItem.Click frmfplyr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem1.Click frmfttour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAYERSToolStripMenuItem1.Click frmhockeyplyr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem2.Click frmhtour.Show()

End Sub

Private Sub LOGINREGISTRATIONToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LOGINREGISTRATIONToolStripMenuItem.Click frmloginreg.Show()

End Sub

Private Sub STATEToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles STATEToolStripMenuItem.Click frmstate.Show()

End Sub

Private Sub STUDENTREGISTRATIONToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles STUDENTREGISTRATIONToolStripMenuItem.Click frmstudentreg.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem.Click frmtour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PLAYERSToolStripMenuItem2.Click frmvolleyplr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem3.Click frmvltour.Show()

End Sub

Private Sub LOGOUTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LOGOUTToolStripMenuItem.Click

If MsgBoxResult.No = MsgBox("DO YOU WANT TO LOGOUT?", MsgBoxStyle.YesNo, " MMS") Then Exit Sub

Me.Close() frmlogin1.Show() End Sub

Private Sub EXITToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EXITToolStripMenuItem.Click If MsgBoxResult.No = MsgBox("DO YOU WANT TO EXIT?", MsgBoxStyle.YesNo) Then Exit Sub Application.Exit() End Sub

Private Sub PHOTOSToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PHOTOSToolStripMenuItem.Click frmfootballphotos.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PHOTOSToolStripMenuItem5.Click frmcrphotos.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PHOTOSToolStripMenuItem2.Click frmvophotos.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PHOTOSToolStripMenuItem1.Click frmhopho.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PHOTOSToolStripMenuItem3.Click frmbadphoto.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PHOTOSToolStripMenuItem4.Click frmbasketphotos.Show()

End Sub

Private Sub ConnectionToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ConnectionToolStripMenuItem.Click SQLServerConnectionDialog.Show() End SubEnd Class

frmStudentRegistrationPublic Class frmstudentreg

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

End Sub

Private Sub frmstudentreg_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load opendb() loadgrid() sno()

End Sub Sub sno() Dim j j = 1 txtsno.Text = j sql = "select max(sno) from tbl_streg" If rs.State = 1 Then rs.Close() rs.Open(sql, conn) If rs.EOF = False Then j = rs(0).Value j = j + 1 txtsno.Text = j End If End Sub Sub loadgrid() sql = "select * from tbl_streg" If rs.State = 1 Then rs.Close() rs.Open(sql, conn) DataGridView1.Rows.Clear() Dim i i = 0 Do While Not rs.EOF DataGridView1.Rows.Add() DataGridView1.Item(0, i).Value = rs(0).Value DataGridView1.Item(1, i).Value = rs(1).Value DataGridView1.Item(2, i).Value = rs(2).Value DataGridView1.Item(3, i).Value = rs(3).Value DataGridView1.Item(4, i).Value = rs(4).Value DataGridView1.Item(5, i).Value = rs(5).Value DataGridView1.Item(6, i).Value = rs(6).Value rs.MoveNext() i = i + 1

Loop End Sub

Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick txtsno.Text = DataGridView1.CurrentRow.Cells(0).Value txtname.Text = DataGridView1.CurrentRow.Cells(1).Value txtclgname.Text = DataGridView1.CurrentRow.Cells(2).Value cmdsport.Text = DataGridView1.CurrentRow.Cells(3).Value DateTimePicker1.Value = DataGridView1.CurrentRow.Cells(4).Value txtage.Text = DataGridView1.CurrentRow.Cells(5).Value cmdgender.Text = DataGridView1.CurrentRow.Cells(6).Value

End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtname.TextChanged

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click clear()

End Sub Sub clear() txtsno.Text = "" txtname.Text = "" txtclgname.Text = "" cmdsport.SelectedIndex = -1 DateTimePicker1.Value = Today.Date txtage.Text = "" cmdgender.SelectedIndex = -1

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If txtsno.Text = "" Then MsgBox("enter student no") ElseIf txtname.Text = "" Then MsgBox("enter student name") ElseIf txtclgname.Text = "'" Then MsgBox("enter college name") ElseIf txtage.Text = "" Then MsgBox("age is not calculated") ElseIf cmdsport.Text = "" Then MsgBox("select sport") ElseIf cmdgender.Text = "" Then MsgBox("select gender")

Else

sql = "insert into tbl_streg(sno,name,clgname,sport,dob,age,gender)" sql = sql & " values('" & txtsno.Text & "','" & txtname.Text & "','" & txtclgname.Text & "','" & cmdsport.Text & "','" & DateTimePicker1.Value & "','" & txtage.Text & "','" & cmdgender.Text & "')" conn.Execute(sql) MsgBox("Record added") clear() sno()

loadgrid() End If

End Sub

Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged Dim Age As Double = Math.Floor(DateDiff(DateInterval.Month, DateTimePicker1.Value, System.DateTime.Now) / 12) txtage.Text = Age

End Sub

Private Sub txtage_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtage.TextChanged

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click sql = "update tbl_streg set name='" & txtname.Text & "',clgname='" & txtclgname.Text & "', sport='" & cmdsport.Text & "',dob='" & DateTimePicker1.Text & "',age='" & txtage.Text & "',gender='" & cmdgender.Text & "' where sno='" & txtsno.Text & "'" conn.Execute(sql) MsgBox("record updated") clear() sno()

loadgrid()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click sql = "delete from tbl_streg where sno='" & txtsno.Text & "'" conn.Execute(sql) MsgBox("record deleted") clear() sno()

loadgrid()

End SubEnd Class