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.
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
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();
}
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;
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;
}
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!!";
}
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";
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: