Anda di halaman 1dari 22

Acknowledgement

I feel proud to present my project on the topic Job Search


Engine.
I am overwhelmed in all humbleness and gratefulness to
acknowledge all those who have helped me to put these ideas and
without whom this project would have not been reality.
I take this opportunity to express my profound gratitude and
deep regards to my guide Mrs.Sharadha Pratap for her exemplary
guidance,monitoring and constant encouragement throughout the
course of project.I also take the opportunity to express my deep
sense of gratitude and sincere thanks to Principal,Mrs Mariamma
S Mathew, The Oxford Senior Secondary School, For her cordial
support, encouragement and guidance which helped me in
completing the task through various stages.
Finally yet importantly, I would like to express my thanks to my
beloved parents for their blessings, my friends for their help and
wishes for the successful completion of this project.

Index
Contents

Preface
About C++
Classes and
Objects in C++
OOPS Concept
Algorithm
Source Code
Sample Outputs
Bibliography

Page No.

Preface
Our Project, Job Search Engine is a program used for managing
jobs , similar to the service provided by web search engines that
cater to the daily management requirements of the public.

This Program not only allows user to enter his details but it also
provides an interface for the users to choose his field,display ,
modify or delete their respective details . This serves the basic
purpose of Object Oriented Programming, i.e Programming close
to real world.

Several features of C++ has been covered in our Program.They


Include:
OOPs Concept such as polymorphism,data encapsulation ,
modularity.data abstraction,etc.
Data File Handling
Functions
Arrays
Data Structures
Classes and Objects

MAIN
MENU
Search for
a Job
Enter The
Details which
gets stored in
file

Post a Job

Displaying the
details and
storing the
experience

1.InformationTechnol
ogy
2.Banking

Enter The Profile of the


Company and the
required experience

3.BPO
Display
the
Details

Compare
the
Experience

If Experience
Matches:Job
Found

If Experience
does not
match: Job is
Not Found
Returns
to Main
Menu

SOURCE CODE

#include<iostream.h>
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<process.h>
#include<string.h>
#include<iomanip.h>
#include<fstream.h>

class candidate
{
public :
char id[20], name[50], place[20];
char add[30], gender[10], quali[30];
int age, exp;
long int salary, no;
void in();
void out();
};
candidate c;
void candidate :: in()
{

clrscr();
cout<<"\n\tPlease enroll yourself...";
cout<<"\nEnter the name:";
gets(name);
cout<<"\nEnter the age:";
cin>>age;
cout<<"\nEnter the gender:(male/female):";
gets(gender);
cout<<"\nEnter the qualification:";
gets(quali);
cout<<"\nEnter the experience:";
cin>>exp;
cout<<"\nEnter the expected salary:";
cin>>salary;
cout<<"\nEnter the location:";
gets(place);
cout<<"\nEnter the email id:";
gets(id);
cout<<"\nEnter the address:";
gets(add);
cout<<"\nEnter the phone no:";
cin>>no;

getch();
}
void candidate::out()
{
clrscr();
cout<<"\n\t\t CANDIDATE'S INFORMATION";
cout<<"\n\t\t\t ---------------------------";
cout<<"\n\t\tName
cout<<"\n\t\tAge

:"<<"\t"<<name;
:"<<"\t"<<age;

cout<<"\n\t\tGender

:"<<"\t"<<gender;

cout<<"\n\t\tQualification:"<<"\t"<<quali;
cout<<"\n\t\tExperience :"<<"\t"<<exp;
cout<<"\n\t\tSalary

:"<<"\t"<<salary;

cout<<"\n\t\tPlace

:"<<"\t"<<place;

cout<<"\n\t\tEmail id

:"<<"\t"<<id;

cout<<"\n\t\tAddress

:"<<"\t"<<add;

cout<<"\n\t\tPhone no

:"<<"\t"<<no;

getch();
}

class com : public candidate


{

public:
char role, loc[50], profile[100], pos, pos1, pos2, result, result1,
result2;
long int phn, fax;
int expe;
void display()
{
clrscr();
cout<<"\n\t\t\t COMPANY'S INFORMATION";
cout<<"\n\t\t\t----------------------\t";
cout<<"\n\t\t\t Location :"<<loc;
cout<<"\n\t\t\t Phone no :"<<phn;
cout<<"\n\t\t\t Fax no :"<<fax;
cout<<"\n\t\t\t Role

:"<<role;

cout<<"\n\t\t\t Experience:"<<expe;
cout<<"\n\t\t\t

"<<profile;

void input()
{
cout<<"\n Please Enter your company's information..\n";
cout<<"\n Enter the location:";

gets(loc);
cout<<"\n Enter the phone no:";
cin>>phn;
cout<<"\n Enter the fax no:";
cin>>fax;
cout<<"\n Enter the role:";
cin>>role;
cout<<"\n Enter the experience:";
cin>>expe;
cout<<"\n Enter the company profile:";
gets(profile);
getch();

}
};
com d;

class IT:public com, public candidate


{
public :
char calc()
{

if(c.exp==expe)
{
if(expe>=5 && expe<=8)
pos = 'P'; //Program Manager
else if(expe>=3 && expe<5)
pos = 'M'; //Program manager
else if(expe>=1 && expe<3)
pos ='H'; //Project Head
else
pos = 'T'; //Trainee
}
return pos;
}

void wipro()
{
if(c.exp==d.expe)
{
result= calc();
cout<<"\n\n\t\tCongratulations!!Experience matched!!";
cout<<"\n\t\tYou will be called for an interview very soon...";
}

else
{
cout<<"\n\n\t\tExperience not matched.\n\t\tSorry, No
vacancy!!";
}
}
};
IT x;

class banking:public com, public candidate


{
public:
char post()
{
if(c.exp==expe)
{
if(expe>=5 && expe<=8)
pos1='B'; //Branch manager
else if(expe>=3 && expe<5)
pos1='A'; //Assistant Manager
else
pos1='C'; //Clerk

}
return pos1;
}
void ICICI()
{
if(c.exp==d.expe)
{
result1=post();
cout<<"\n\n\t\tCongratulations!!Experience matched!!";
cout<<"\n\t\tYou will be called for an interview very soon...";
}
else
{
cout<<"\n\t\tExperience not matched.\n\t\tSorry, No
vacancy!!";
}
}
};
banking y;
class BPO:public com, public candidate
{
public :

char post1()
{
if(c.exp==d.expe)
{
if(expe>=5 && expe<=8)
pos2='G'; //Back end
else if(expe>1 && expe<3)
pos2='S'; //Customer care executive
else if(expe==1)
pos2='F'; //Accounting manager
else
pos2='E'; // Manager
}
return pos2;
}
void gateway()
{
if(c.exp==d.expe)
{
result2=post1();
cout<<"\n\n\t\tCongratulations!!Experience matched!!";

cout<<"\n\t\tYou will be called for an interview very


soon...";

}
else
{
cout<<"\n\t\tExperience not natched.\n\t\tSorry, No
vacancy!!";
}
}
};
BPO z;

void main()
{
clrscr();
fstream fin;
char ch, choice;
do
{
clrscr();
cout<<"\n\t\t\t\tWelcome to JOBS.com\n\n";
cout<<"\n\t\t\t\t-*--*-*-*-*-*-*-*-*-\n\n";

cout<<"\n\t\tChoose the options in the same order...";


cout<<"\n\t\t1.Search for a job";
cout<<"\n\t\t2.Post a job";
cout<<"\n\t\t3.Exit";
cout<<"\n\t\tEnter the option:";
cin>>choice;
switch(choice)
{
clrscr();
case '1' :
fin.open("doc.dat", ios::in|ios::binary);
while(!fin.eof())
{
c.in();
fin.write((char*)&c, sizeof(c));
fin.read((char*)&c,sizeof(c));
c.out();
break;
}
fin.close();
break;
case '2' :

cout<<"\n\t\tPlease choose your stream...\n";


cout<<"\n\t1.INFORMATION TECHNOLOGY(IT)";
cout<<"\n\t2.BANKING";
cout<<"\n\t3.BUSINESS PROCESS OUTSOURCING(BPO)";
cout<<"\nEnter your choice:";
cin>>ch;
switch(ch)
{
clrscr();
case '1' :
fin.open("wipro.dat", ios::in|ios::binary);
while(!fin.eof())
{
clrscr();
cout<<"\n\t\t\t\tWelcome to Wipro\n";
cout<<"\n\t\t\t\t-----------------------\t";
d.input();
fin.write((char*)&d,sizeof(d));
d.display();
fin.read((char*)&d,sizeof(d));
x.wipro();
break;

break;
}
fin.close();
break;
case '2' :
fin.open("icici.dat", ios::in|ios::out|ios::binary);
while(!fin.eof())
{
clrscr();
cout<<"\n\t\t\t\tWelcome to ICICI Bank\n";
cout<<"\n\t\t\t\t-------------------------------\n";
d.input();
fin.write((char*)&d,sizeof(d));
d.display();
fin.read((char*)&d,sizeof(d));
y.ICICI();
break;
break;
}
fin.close();
break;
case '3' :

fin.open("gateway.dat",ios::in|ios::out|ios::binary);
while(!fin.eof())
{
clrscr();
cout<<"\n\t\t\t\tWelcome to Gateway systems\n";
cout<<"\n\t\t\t\t----------------------------------------\t";
d.input();
fin.write((char*)&d,sizeof(d));
d.display();
fin.read((char*)&d,sizeof(d));
z.gateway();
break;
break;
}
fin.close();
break;
default : cout<<"\n\tOptions not matched!! Try Again..\n";
}
break;
default : cout<<"\n\nPlease enetr a valid option!!\n";
break;
getch();

}
getch();
}while(choice!='3');
getch();
}

SAMPLE OUTPUT

Teachers Report
Name

Class

Section :
Roll no :
School

Teachers Signature:
Date:

Anda mungkin juga menyukai