Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA...

18
Dwarka Sports Complex Management System

Transcript of Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA...

Page 1: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

Dwarka Sports Complex Management System

Page 2: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

Computer Science Project

By-

Pulkit Bhardwaj

XII – E

Page 3: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

.:Certificate :. This is to certify that PULKIT BHARDWAJ, student of Class XII – E, The Air Force School, New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards partial fulfillment of credit for the Computer Science Practical evaluation of AISSCE 2012 under my supervision.

Mr. Shivender Kumar Bhardwaj (P.G.T. – Computer Science)

Department of Computer Science The Air Force School, New Delhi

Page 4: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

I would like to express my sincere gratitude to my Computer Science mentor Mr. Shivender Kumar Bhardwaj for his vital support, guidance and encouragement, without which this project would not have come forth. I would also like to express my gratitude to the staff of the Department of Computer Science at The Air Force School, New Delhi for their support during the making of this project.

Page 5: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

.: Index :.

S. No. TOPIC

1. Acknowledgement

2.

About the Project • Introduction • Data Files Used • Header Files Used • Classes Used

3. Source Code

4. Output

5. Enhancements

6. Bibliography

Page 6: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

.: About the Project :.

Page 7: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

Introduction

“DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” has been designed to manage the working of a sports complex situated in Dwarka. The sports complex has the following sports facilities: Football Cricket Basketball Lawn Tennis Table Tennis Volleyball Badminton

The complex enrolls members of nearby localities to avail the above facilities. Each member can avail a maximum of 3 facilities. At the time of enrollment an admission of Rs. 10000 is charged. Every member has to pay an additional fee to avail the sports facilities. The fee can be paid in 2 modes:

S. No. Mode Fees 1. Yearly Rs. 7000 2. Half-Yearly Rs.3800

The management of the Sports Complex is facing the following problems in managing the complex:

1. Keeping a track of Due-date of yearly and half-yearly fees 2. Keeping an account of enrolled members 3. Verification of enrolled members for corresponding facilities 4. Knowing the number of members availing a particular facility 5. Keeping a record of fees collection 6. When to stop enrolling members 7. Other day-to-day problems

Page 8: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

This project is an attempt to solve the problems faced by the management. The following operations are available in this project:

S. No. Operations

1. Registration of a new member with automatic generation of membership number and fee details

2. Modification of member’s details except Membership Number

3. Deletion of records of members who are no more members of the Sports Complex

4.

Searching a member on the following basis: • Membership No. • Member name • Phone No.

5. Entry of Fees

6. Addition of new facilities to the Sports Complex

The following reports are generated by DSCMS:

S. No. Report

1. List of all the members with all the details

2. List of facilities available in the complex

3. Activity-wise Membership No. and Member’s Name

4. Date-wise fees collected in a particular month

5. List of the members whose fees is due in the current month

6. Viewing membership card for a member

Page 9: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

The following validations are also used in the DSCMS:

S. No. Validations Used

1.

Correct entry of Date (Date Validation) • Day should be according to the month • Month should be between 1 and 12 • Year should be from 2011 to 2100 • February should be of 29 days in a leap year

2. Automatic generation of membership no. to avoid duplicity

3. Automatic calculation of the due date based on payment mode

4. Entry of correct facility code while enrolling a new member

Page 10: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

Data Files Used 1) Member File – It contains the details of all the members. Sample data is given

below:

“member.dat”

M. No.

Name Address Phone No. Facilities Date of

Joining Due Date

No. of children

Pay-code C1 C2 C3

1 Pulkit 331/15, Dwarka 25083204 1 4 7 5-1-2012 5-1-2013 0 1 2 Harshit 331/15, Dwarka 25072778 2 3 4 17-1-2012 17-7-2012 0 1 3 Karndeep 333/15, Dwarka 25087559 1 2 7 9-2-2012 9-2-2013 0 1

2) Fees File – It contains the data of fees collected from the members. Sample data is given below:

“feesfile.dat”

Membership No.

Date of Deposit Amount Fine

(Rs. 100/month) Total Amount to

be Deposited 1 8-2-2013 Rs. 7000 Rs. 100 Rs. 7100 2 25-9-2012 Rs. 3800 Rs. 200 Rs. 4000 3 20-2-2013 Rs. 7000 Rs. 0 Rs. 7000

3) Facility File – It contains the information about the facilities available in the Sports Complex. Sample data is given below:

“facility.dat”

Facility Code Facility Code 01 Football 02 Cricket 03 Badminton 04 Basketball 05 Lawn Tennis 06 Table Tennis 07 Volleyball

Page 11: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

Header Files Used

Header Files Functions Used

fstream.h

File based functions: • open() • close() • seekg() • seekp() • tellg() • read() • write() • cin • cout

iomanip.h • setw() • setiosflag()

stdio.h

• gets() • puts() • remove() • rename()

conio.h • getch() • clrscr()

ctype.h • toupper()

string.h • strcmpi()

process.h • exit()

Page 12: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

Classes Used

1. Facility:

Data Members

Accessibility Mode Name Details

Private char fac_type[10] Name of the Facility

int fac_code Code of the Facility

Member Functions

Accessibility Mode Name Details

Public

void get_fac() To get new facility

void show_fac() To print the facility

void add_fac() To add the facility in the facility file

void show_facility() To show the facilities available in the complex

2. Fees:

Data Members

Accessibility Mode

Name Details

Private DATE date_of_deposit Date on which the fees was last deposited

Page 13: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

unsigned long mem_code Membership No.

float amount The amount of fees

Member Functions

Accessibility Mode

Name Details

Public

void add_fees_object() To make an entry in the fees file

void del_fees_object() To delete the entry from the fees file if a member leaves the complex

void check_due_date() To check if the fees is due

void get_fees() To get the fees deposited by the member

void show_fees() To show the fees entry

void show_fees_file() To display the fees file

void fees_collection() To show date-wise fees collection in a particular month

3. Member:

Data Members

Accessibility Mode

Name Details

Private unsigned long mem_code Membership No.

char mem_name[25] Name of the member

Page 14: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

DATE date_of_joining Date of joining the complex

DATE due_date Date on which the fees is due

char address[50] Address of the member

long phone_no Phone no. of the members

int fac_code1 Code of the Sports Facilities which have been availed by the member

int fac_code2

int fac_code3

int no_of_child No. of children

int payment_code

Payment Code 1) If the fees is being paid

yearly 2) If the fees is being paid

half-yearly

Member Functions

Accessibility Mode

Name Details

Public

unsigned long get_rec_no()

For auto-generation of Membership No.

void get_data() To get the data

void show_data() To display the data

void show_all() To show all the records present in the file

void add_object() To add a record to the member file

Page 15: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

void update_fees_file2() To update the fees file when fees has been collected

void del_object() To delete a member

void modify_object() To modify the details of the member

void search_object() To search a member for verification

int calc_fine() To calculate the fine if the fees has not been deposited on time

void calc_due_date() To calculate the date on which fees is due

void facility_availed() To list the members availing a particular facility

void membership_card() To generate the membership card for a member

void fees_due() To list the members whose fees is due in a current month

void reports() `

Page 16: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

.: Source Code :.

Page 17: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

.: Enhancements :.

I have completed this project with my full enthusiasm for my satisfaction but as we know that there is always a scope for improvement so if I get one more chance to devote my time to this project I would surely come out with more practical approaches, to take it to my total satisfaction . . . . .

Page 18: Dwarka Sports Complex Management System · New Delhi has completed the project titled “DWARKA SPORTS COMPLEX MANAGEMENT SYSTEM (DSCMS)” during the academic year 2011-12 towards

.: Bibliography :.

Books Referred:

Sumita Arora A. K. Sharma

Guidance through:

Parents Teachers

Information:

Internet