Professional Documents
Culture Documents
1. Certificate..
2. Acknowledgement
...
3. About the
Project.........................................
4. Source
Code..............................................
...
5. Output Screenshots
.....
6. Bibliography
certificate
This is to certify that Riazul
Haque, student of Class XII Sci
under roll no.of ____________ has
completed the project titled 'ICT
Management System' during the
academic year2016-2017.He has
completed the project work under
computer department under direct
supervision of undersigned as per
the requirement of The Board
Examination
Mr.Avinash Mishra
Department of Computers
Signature
Acknowledgements
I would like to express my sincere
gratitude to my computer science teacher
Mr. Avinash Mishra for his vital support,
guidance andencouragement - without
which this project would not have come
forth.
Source Code
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
struct data
{
intsno;
char name[20];
floatavg; // Average
int runs;
int cent; // Centuary
intwic; // Wickets
float avg2;
}b[20],c,d;
void menu2(int n);
void question(int n);
//___________________________________________________________________________
//___________________________________________________________________________
void sort(int n)
{
inttmp,small,pos;
for(int l=1;l<=n;l++)
{
small=b[l].sno;
pos=l;
for(int k=l+1;k<=n;k++ )
{
if(b[k].sno<small)
{
small=b[k].sno;
pos=k;
}
}
d=b[l];
b[l]=b[pos];
b[pos]=d;
}
}
//___________________________________________________________________________
//___________________________________________________________________________
void enter(int n)
// Function to input Cricketers info
{
clrscr();
cout<<"
*=*=*=*=*=*=*=*=*=*=*=|ICT MANAGEMENT SYSTEM|
*=*=*=*=*=*=*=*=*=*=*";
cout<<"\n\n\t\tEnter the details of the selected players:";
for(inti=1;i<=n;i++)
{
cout<<"\n\tS No.";
cin>>b[i].sno;
cout<<endl<<"\n\tNAME:";
gets(b[i].name);
cout<<endl<<"\n\tRUNS SCORED:";
cin>>b[i].runs;
cout<<"\n\tCENTURIES:";
cin>>b[i].cent;
cout<<endl<<"\n\tBATTING AVERAGE:";
cin>>b[i].avg;
cout<<"\n\tWICKETS:";
cin>>b[i].wic;
cout<<endl<<"\n\tBOWLING AVERAGE:";
cin>>b[i].avg2;
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*";}
menu2(n);
}
//___________________________________________________________________________
//___________________________________________________________________________
void display(int n) // Function to display Selected players
{
sort(n);
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n";
cout<<"\t\tLIST OF INDIAN PLAYERS:";
for(inti=1;i<=n;i++)
{
cout<<"\n\tS No."<<b[i].sno<<endl;
cout<<"\tNAME:"<<b[i].name;
}
question(n);
}
//___________________________________________________________________________
//___________________________________________________________________________
void details(int n) // Function to view details
{
clrscr();
sort(n);
int x;
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*";
cout<<"\n\tDETAILS OF WHICH PLAYER(SNo.) DO U WANNA SEE:";
cin>>x;
cout<<"\n\tS No.\t"<<b[x].sno<<endl;
cout<<"\n\tNAME:\t"<<b[x].name<<endl<<"\n\tRUNS
SCORED:\t"<<b[x].runs;
cout<<"\n\n\tCENTURIES:\t"<<b[x].cent<<"\n\n\tBATTING
AVERAGE:\t"<<b[x].avg;
cout<<"\n\n\tWICKETS:\t"<<b[x].wic<<"\n\n\tBOWLING
AVERAGE\t"<<b[x].avg2;
question(n);
}
//___________________________________________________________________________
//___________________________________________________________________________
rank1(int n) // Function to sort players according to their batting average
{
clrscr();
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n";
cout<<"\n\n\t\tBATTING RANKINGS:";
inttmp,small,pos,p=1;
for(int l=1;l<=n;l++)
{
small=b[l].avg;
pos=l;
for(int k=l+1;k<=n;k++ )
{
if(b[k].avg<small)
{
small=b[k].avg;
pos=k;
}
}
c=b[l];
b[l]=b[pos];
b[pos]=c;
}
for(inti=n;i>=1;i--)
{
cout<<"\n\n\t"<<p<<b[i].name<<endl;
p++;
}
question(n);
}
//___________________________________________________________________________
//___________________________________________________________________________
rank2(int n)
// Function to sort players according to their bowling average
{
clrscr();
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n";
cout<<"\n\n\t\tBOWLING RANKINGS:";
inttmp,small,pos,p=1;
for(int l=1;l<=n;l++)
{
small=b[l].avg2;
pos=l;
for(int k=l+1;k<=n;k++ )
{
if(b[k].avg2<small)
{
small=b[k].avg2;
pos=k;
}
}
c=b[l];
b[l]=b[pos];
b[pos]=c;
}
for(inti=1;i<=n;i++)
{
cout<<"\n\n\t"<<p<<b[i].name<<endl;
p++;
}
question(n);
}
//___________________________________________________________________________
//___________________________________________________________________________
void rank(int n)
// Function to view ranks
{
clrscr();
int y;
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*";
cout<<"\t\tWHICH RANKINGS DO U WANT TO SEE:";
case 4:del(n);
case 5:update(n);
case 6:break;
default:cout<<"\n\n\t\twrong choice";
}
getch();
}
//___________________________________________________________________________
//___________________________________________________________________________
void menu1()
{
clrscr();
int s;
// Function to display menu
cout<<" *=*=*=*=*=*=*=*=*=*=*=|WELCOME TO ICT MANAGEMENT
SYSTEM|*=*=*=*=*=*=*=*=*=*=*";
cout<<"\n\nEnter the number of selected players:";
cin>>s;
cout<<"\n\nPress any key to Continue";
getch();
enter(s);
getch();
}
//___________________________________________________________________________
//___________________________________________________________________________
void question(int n)
// Function to display menu
{
cout<<"\n\n\n";
int e;
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*";
cout<<"\n\tEnter 1 for returning to the menu.";
cout<<"\n\tEnter 2 to exit.";
cout<<" \n*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*";
cout<<"\n\n\tEnter your choice :";
cin>>e;
switch(e)
{
case 1:menu2(n);
case 2:cout<<" Thank you ";
break;
}
}
//___________________________________________________________________________
//___________________________________________________________________________
void main()
{
menu1();
}
//___________________________________________________________________________
//_________________________________________________________________________
Outputs Screenshots
Bibliography
For our project we have taken help from following sources
1) COMPUTER SCIENCE WITH C++
BY SUMITA ARORA
2) INTERNET-CRICKET.YAHOO.COM