Sunteți pe pagina 1din 44

COMPUTER PROJECT

COMPETITION MANAGEMENT
2013-2014 MAHARISHI VIDYA MANDIR SENIOR SECONDRY SCHOOL S.DAYALLINI

2|Page

INTRODUCTION
Competition management is a project aimed at developing an error free computerized system to maintain the details regarding competitions conducted by the school. All the competitions will be registered in a competition register and the students who wish to participate can register them. Hall ticket will be generated and it is given to the student. This computerized system help the management to do the process in an effective way without any mistakes.

3|Page

PROBLEM DEFINITION
Gone are the days of long registration queues and paper forms to sign up for an endurance event. An increasing number of event directors from both large and small events are embracing online registration services as an added-value for both them and their participants. Online registration not only improves efficiencies and eliminates unnecessary paperwork, it also maximises participation and improves marketing capabilities while allowing participants to sign up when and where it is most convenient for them from any Internet-enabled computer. For Organisers 1 Save time opening, entering and sorting out illegible or inaccurate forms can be very time consuming, so just by eliminating these processes off your duties you are set to get at least 4 less administrative work hours per week 2 Free Online registration you can pass the small registration fee to your participant, half the fee between you and the participant, or pay the small fee yourself Improved customer support your online registration provider will ensure you have all the necessary information to answer immediately to any of the payment related questions For Participants Save time Participants can sign up online when and where is most convenient for them in just a few minutes without having to print, manually fill out and send paper forms

4|Page

Secure online payment processing 24/7 Active Network payment system is PCI DSS compliant and possesses Secure Socket Layer technology

Securely and conveniently pay online instead of writing a cheque or counting cash at the front line, participants can simply enter their credit card details online to securely complete their transaction in seconds

Centralised data management collect participants data and payments; view number of remaining participant places; analyse participants and payments reporting; assign participants with bib numbers; e-mail the participants database and more

Receive automated confirmation receipt Once the payment is processed, participants will then receive a receipt confirming they are signed up for their desired event and their payment has been securely processed and accepted

Improve event efficiency the time and money saved on data entry administrative tasks can be used for better the event, contact more sponsors, prepare more activities, reply faster to participants

Access to early bird pricing with flexible pricing options, participants can now be incentivised and rewarded with a discount if they sign up by a specific date

5|Page

Customised online registration a good online registration provider will permit full customisation of your event registration page to the look and feel you want to give it

Access to discounts event organisers can offer discount codes to potential participants to incentivise them to join the event, hence participants are far more likely to enjoy discounts through this payment method

Detailed reporting The system should provide an insightful reporting into payments received and due, refunds given, multi-event analysis and all other reporting tools essential to efficiently manage a successful event

Receive e-mails and notifications - Participant gets the ability to be informed straight to their inbox whenever a new event of their interest is launched, without having to look for it.

The most important to our evaluation is to understand the security measures each registration provider employs. Make sure the project utilises the strictest industry security settings, technologies and firewall measures to ensure your participants personal information and our stored data is always protected from thief corruption and power outages.

6|Page

PROBLEM ANALYSIS
The main target of the project is to create a user friendly menu driven program to help them register themselves into their desired competitions.

HEADER FILES USED:


1. iostream.h: Provides functionality to use an abstraction called streams. 2. conio.h: To create text user interfaces eg. clrscr() ,getch(),........ 3. fstream.h: Input/output stream class to operate on files. 4. stdio.h: Contains some standard functions related to input and output 5. process.h: Contains function declarations and macros used in working with threads and processes

ALGORITHM:
CLASS DEFINITION: CLASS NAME: competition PRIVATE MEMBER VARIABLES: cno: competition number(int) cname: competition name(char []) ctype: competition type(char []) condby: conducted by(char []) ecf1, ecf2, ecf3: eligibility classes(int) day: competition date's day(int) month: competition date's month(int) year: competition date's year(int) venue: venue(char [])
7|Page

fee: fees(float) ma: materials available(char []) mcost: material's cost(float) lday: day of last date to register(int) lmonth: month of last date to register(int) lyear: year of last date to register econd: extra conditions(char []) tea: person in charge(char []) PUBLIC MEMBER FUNCTIONS: input(): Function return type: void Gets input from the user who is about to register a competition. It gets the values for all the private data members display1(): Function return type: void Displays the competition number, date, month and year of the competition day and venue of the competition required for the generation of hall ticket display2(): Function return type: void Displays the competition number, competition name, date, month and year of the competition day, venue of the competition and the date, month and year of last day to register required for the display of competitions for a particular class asked by the user display3(): Function return type: void

8|Page

Displays the competition number, competition name, date, month and year of the competition day and venue of the competition required for the display of competitions for a particular month

display4(): Function return type: void Displays the competition number, competition name, date, month and year of the competition day and venue of the competition required for the display of the result of a specific competition retcno(): Function return type: int returns the value fs competition number

retecf1(): Function return type: int returns the value of the first eligibility class

retecf2(): Function return type: int returns the value of the second eligibility class

retecf3(): Function return type: int returns the value of the third eligibility class

retmonth(): Function return type: int returns the value of month of the competition day

9|Page

CLASS DEFINITION: CLASS NAME: studreg PRIVATE MEMBER VARIABLES: cno: competition number(int) cname: competition name(char []) regno: registration number(int) sname: student's name(char []) standard: standard(int) sec: section(char) fname: father's name(char []) add: address(char []) eid: email id(char []) phno: phone number( long int) matreq: materials required(char []) totfee: total fees(long int) PUBLIC MEMBER FUNCTIONS: studinput(int): Function return type: void Takes input from the user which are required for registering a student and allots the registration number for the student display(): Function return type: void displays the student name, father's name, email id and phone number which are required while generating the hall ticket retregno(): Funtion return type: int returns the value of the registration number of the student
10 | P a g e

CLASS DEFINITION: CLASS NAME: result PRIVATE MEMBER VARIABLES: compno: competition number(int) compname: competition name(char []) sregno: student registration number(int) sname: student's name(char []) standard: standard(int) sec: section(char) result result(char [])

PUBLIC MEMBER FUNCTIONS: input(): Function return type: void Gets input from the user for all the data members of the class

display4(): Function return type: void displays the student's registration number, student's name, standard, section and result for the particular competition retcompno(): Function return type: int returns the value of competition number

11 | P a g e

FUNCTION DEFINITION: FUNCTION NAME: compreg FUNCTION RETURN TYPE: void FUNCTION: The function opens a binary file and writes the data for the competition object into the file. It gets executed when a person wants to register a competition FUNCTION DEFINITION: FUNCTION NAME: studregtn FUNCTION RETURN TYPE: void ARGUMENT DATA TYPE: the function takes and integer as reference tht is it follows call be reference FUNCTION: The function opens a binary file and writes the data for the studreg object into the file, it copies the value of the argument passed to the student registration number, it then increments the value of the argument passed. At the end it displays the student's registration number It gets executed when a person wants to register a student for a competition FUNCTION DEFINITION: FUNCTION NAME: updateresult FUNCTION RETURN TYPE: void FUNCTION: The function opens a binary file and writes the data for the result object into the file. It gets executed when a person wants to update the result for a competition FUNCTION DEFINITION: FUNCTION NAME: hallticket FUNCTION RETURN TYPE: void
12 | P a g e

FUNCTION: The function gets the input for the competition number and student registration number, it compares them with the registration number and competition number while reading the respective binary files and calls function display() and display1() of classes studreg and competition respectively if the comparison is satisfied FUNCTION DEFINITION: FUNCTION NAME: disclass FUNCTION RETURN TYPE: void FUNCTION: The function gets the input of the class and compares it with the eligibility classes while reading the competition binary file and calls display2() of class competition if the comparison is satisfied FUNCTION DEFINITION: FUNCTION NAME: dismonth FUNCTION RETURN TYPE: void FUNCTION: The function gets the input of the month of the competition day and compares it with the month of the competition day while reading the competition binary file and calls display3() of class competition if the comparison is satisfied FUNCTION DEFINITION: FUNCTION NAME: comdis FUNCTION RETURN TYPE: void FUNCTION: The function gets the input of the competition number and compares it with the competition number while reading the result binary file and calls display4() of class result if the comparison is satisfied

13 | P a g e

VOID MAIN(): clrscr(): To clear the screen. Introduction to the project is displayed. choice: choice(int). rn: the argument for the student registration number and is assigned a value of 1 Menu is displayed Choice is taken from the user in choice. Variable ch is passed to the switch statement. If ch=1, comreg() is called. If ch=2, studregtn() is call by reference passing rn as its argument. If ch=3, updateresult() is called. If ch=4, hallticket() is called. If ch=5, disclass is called. If ch=6, dismonth() is called. If ch=7, comdis() is called.

The whole program is looped using do while.

14 | P a g e

HARDWARE REQUIREMENTS
Operating system Processor Memory Driver model Version BIOS C++ version : Windows 7 Home basic 64 bit :IntelCorei3-CPU M 330 @2.13GHz (4 CPUs), ~2.1GHz : 2048 MB RAM :WDDM1.1 :8.15.10.2202 : Default System BIOS : version 3

15 | P a g e

FUTURE ENHANCEMENTS
This project aims at creating an easy and customized way of online registration for various national level competitions and replacing the existing manual way of registration, thus helping in a standardized, more detailed and convenient way.

16 | P a g e

SOURCE CODE

#include<iostream.h> #include<conio.h> #include<stdio.h> #include<fstream.h> #include<process.h> class competition { int cno; char cname[25]; char ctype[20]; char condby[25]; int ecf1,ecf2,ecf3; int day; int month; int year; char venue[30]; float fee;
17 | P a g e

char ma[50]; float mcost; int lday; int lmonth; int lyear; char econd[50]; char tea[25]; public: void input() { cout<<"\n Enter the Competition number "; cin>>cno; cout<<"\n Enter the Competion name "; gets(cname); cout<<"\n Enter the Competition type "; gets(ctype); cout<<"\n Enter Person conducting the competition "; gets(condby); cout<<"\n Enter Eligibility classes one by one ";
18 | P a g e

cin>>ecf1>>ecf2>>ecf3; cout<<"\n Enter Competition date dd/mm/yr "; cin>>day>>month>>year; cout<<"\n Enter Venue "; gets(venue); cout<<"\n Enter fee "; cin>>fee; cout<<"\n Enter Material Available "; gets(ma); cout<<"\n Enter cost for the material "; cin>>mcost; cout<<"\n Enter last date for enrollment dd\mm\yy"; cin>>lday>>lmonth>>lyear; cout<<"\n Enter any extra conditions"; gets(econd); cout<<"\n Enter Person in charge"; gets(tea); }

19 | P a g e

void display1() { cout<<"Competition Number "<<cno<<"Competition day "<<day<<"/"<<month<<"/"<<year<<"Venue "<<venue; } void display2() { cout<<"Competition Number "<<cno<<"Competition Name "<<cname<<"Competition day "<<day<<month<<year<<"Venue "<<venue<<lday<<lmonth<<lyear; } void display3() { cout<<"Competition Number "<<cno<<"Competition Name "<<cname<<"Competition day "<<day<<month<<year<<venue; } void display4() { cout<<"\nCompetition day "<<day<<"/"<<month<<"/"<<year<<"\nVenue "<<venue; }

20 | P a g e

int retcno() { return cno; } int retecf1() { return ecf1; } int retecf2() { return ecf2; } int retecf3() { return ecf3; } int retmonth() { return month;
21 | P a g e

} }; class studreg { int cno; char cname[25]; int regno; char sname[30]; int standard; char sec; char fname[30]; char add[100]; char eid[20]; long int phno; char matreq[60]; long int totfee;

22 | P a g e

public: void studinput(int s) { cout<<" \n Enter Competition number"; cin>>cno; cout<<" \n Enter the Competitio name"; gets(cname); regno=s; cout<<" \n Enter the name of the student"; gets(sname); cout<<"\n Enter Class of student"; cin>>standard; cout<<"\n Enter the section of student"; cin>>sec; cout<<"\n Enter the name of the father"; gets(fname); cout<<"\n Enter the Address"; gets(add); cout<<"\n Enter E-mail ID";
23 | P a g e

gets(eid); cout<<"\n Enter Phone number"; cin>>phno; cout<<"\n Enter Materials required"; gets(matreq); cout<<"\n Enter total fee payable"; cin>>totfee; } void display() { cout<<"Student's name "<<sname<<"\tFather's name "<<fname<<'\t'<<add; cout<<"\nEmail Id "<<eid<<"\tPhone Number "<<phno; } int retregno() { return regno; } };

24 | P a g e

class result { int compno; char compname[30]; long int sregno; char sname[30]; int standard; char sec; char result[30]; public: void input() { cout<<"enter comp no \n"; cin>>compno; cout<<"enter compname \n"; gets(compname); cout<<"enter student registration no \n"; cin>>sregno; cout<<"enter student name \n";
25 | P a g e

gets(sname); cout<<"enter standard \n"; cin>>standard; cout<<"enter section \n"; cin>>sec; cout<<"enter result \n"; gets(result); } void display4() { cout<<"\nRegistration number "<<sregno<<"\t Name "<<sname<<"\tStandard "<<standard<<"\tsection "<<sec<<"\nResult "<<result; } int retcompno() { return compno; } };

26 | P a g e

void comreg() { char rep='y'; competition c; ofstream fout("comreg.dat",ios::binary); if(!fout) { cout<<"Error\n"; exit(0); } else { do { c.input(); fout.write((char*)&c,sizeof(c)); cout<<"Do you want to register more competetions??"; cin>>rep; }while(rep=='y'); }
27 | P a g e

fout.close(); }

void studregtn(int &n) { char rep='y'; studreg d; ofstream fout("studreg.dat",ios::binary); if (!fout) cout<<"error\n"; else { do { d.studinput(n); cout<<"student no"<<n; fout.write((char*)&d,sizeof (d)); cout<<"do you want to continue"; cin>>rep;
28 | P a g e

n++; }while(rep=='y'); } fout.close(); } void updateresult() { result e; char rep='y'; ofstream fout("result.dat",ios::binary); if(!fout) cout<<"error \n"; else { do { e.input(); fout.write((char*)&e,sizeof(e)); cout<<"do you want to continue?\n";
29 | P a g e

cin>>rep; }while(rep=='y'); } fout.close(); } void hallticket() { studreg f; int comno,stno; char cvenue; cout<<"enter com no and stud no"; cin>>comno>>stno; competition g; ifstream fin("studreg.dat",ios::binary); if(!fin) cout<<"error \n"; else { while(!fin.eof())
30 | P a g e

{ fin.read((char*)&f,sizeof(f)); if(f.retregno()==stno) f.display(); } fin.close(); } ifstream gin("comreg.dat",ios::binary); if(!gin) cout<<"error \n"; else { while(!gin.eof()) { gin.read((char*)&g,sizeof(g)); if(gin.eof()) break; if(g.retcno()==comno) g.display1();
31 | P a g e

} gin.close(); } } void disclass() { int clas; cout<<"enter the class"; cin>>clas; competition h; ifstream hin("comreg.dat",ios::binary); if(!hin) cout<<"error \n"; else { while(!hin.eof()) { hin.read((char*)&h,sizeof(h)); if(hin.eof())
32 | P a g e

break; if((clas==h.retecf1())||(clas==h.retecf2())||(clas==h.retecf3())) h.display2(); } hin.close(); } } void dismonth() { competition i; int mnth; cout<<"enter month"; cin>>mnth; ifstream iin("comreg.dat",ios::binary); if(!iin) cout<<"error \n"; else { while(!iin.eof())
33 | P a g e

{ iin.read((char*)&i,sizeof(i)); if(iin.eof()) break; if(mnth==i.retmonth()) i.display3(); } iin.close(); } } void comdis() { result j; int cmptno; cout<<"enter com no:"; cin>>cmptno; ifstream jin("result.dat",ios::binary); if(!jin) cout<<"error \n";
34 | P a g e

else { while(!jin.eof()) { jin.read((char*)&j,sizeof(j)); if(jin.eof()) break; if(cmptno==j.retcompno()) j.display4(); } } jin.close(); } void main() { clrscr(); int choice,rn=1; char rep; do
35 | P a g e

{ cout<<"\tCOMPETITION MANAGEMENT"<<"\n"; cout<<"* Competition management is a project aimed at developing an error free"; cout<<"\n"<<"computerized system to maintain the details regarding competitions conducted by the school."; cout<<"\n"<<"* All the competitions will be registered in a competition register"; cout<<"\n"<<"and the students who wish to participate can register themselves into it."; cout<<"\n"<<"* Hall ticket will be generated and it is given to the student."; cout<<"\n"<<"* This computerized system help the management to do the process in an effective way without any mistakes."; cout<<"\n"<<"\tMAIN MENU"<<"\n"; cout<<"1.To Register a Competition"<<"\n"; cout<<"2.To Regist er a Student for a Competition "<<"\n"; cout<<"3.To update the Result of a Competition"<<"\n"; cout<<"4.To generate the hallticket for the Competition"<<"\n"; cout<<"5.Display the list of all competitions for a particular class"<<"\n"; cout<<"6.Display the list of all competitions for a particular month"<<"\n"; cout<<"7.Display about the Results of a Competition"<<"\n"; cout<<"\nENTER YOUR CHOICE"; cin>>choice;
36 | P a g e

switch(choice) { case 1:comreg(); break; case 2:studregtn(rn);

break; case 3:updateresult(); break; case 4:hallticket(); break; case 5:disclass(); break; case 6:dismonth(); break; case 7:comdis(); break; default:cout<<"invalid choice"; }
37 | P a g e

cout<<"Do you want to continue?"; cin>>rep; }while(rep=='y'); getch(); }

38 | P a g e

SAMPLE OUTPUT

39 | P a g e

40 | P a g e

41 | P a g e

42 | P a g e

43 | P a g e

BIBLIOGRAPHY
BOOK USED:
1. COMPUTER SCIENCE WITH C++ by SUMITA ARORA

WEBSITE REFERRED :
http://www.activenetwork.ie/event-management-resources/articles/top-10-benefits-of-onlineregistration.htm

44 | P a g e

S-ar putea să vă placă și