Please fix this code I couldn't find the errors. #include #include #include using namespace std; class candidate { private string cname,city,co
Please fix this code I couldn't find the errors.
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
class candidate
{
private
string cname,city,contactno;
int age,qualfication, specialization year_of_pass;
int total_work_exp,emp_status,expected_salary;
public:
{
candidate()
{
name="";
city="";
contactno="";
age = 0;
qualification =-1;
specialization=-1;
year_of_pass=0;
total_work_exp=-1;
emp_status=-1;
expected_salary=0;
}
void displayHeadig()
}
coute<<"\nWelcome to Muscat Recruitment
Agency";
cout<<"\n----------------------------------";
}
void gotPersonalData()
{
cout <« "\n\n\ "Personal Datal";
cout <<"\n\n1-Enter Candidate name: ";
cin>>name;
cout <<"\n2-Enter Candidate age: ";
cins>>age;
cout<"\n3-Enter Candidate Contact No: ";
cin>>contactno;
coute<"\n4-Enter Candidate adtlress(City):";
cin>>city;
}
void getEducatData()
{
cout << "\n\n\"Education\";"
cout <<"\n\n1-Entor Candidate highest
qualification:;"
cout <<"\n Enter 0 for diploma, 1 for Bachelors, 2
{or Masters and 3 for Doctorate:";
cin>>qualification;
fflush(stain);
cout <<"\n1-Enter Candidate specialization: ";
cout<<"\n Enter 0 far non engineering, 1for
cngincering:";
cin>>specialization;
fflush(stain);
cout<<"\n3-Enter Candidate Year af passing: ";
cin>>year_of_pass;
}
void getWorkExpData()
{
cout << "\n\n "Work Experience\"";
cout <<"\n\n-Enter Candidate Total Work
Experionce:";
cin>>total_work_exp;
fflush(stain);
cout <<"\n2-Enter Employment Status: ";
ccout=="\n 0 for Un-Employed and 1 for Employed:";
cins>emp_status;
fflush(stain);
cout<<"\n3-Enter Salary Expectation:";
cin>>expected_salary;
}
void displayResult()
{
coute<<"\n\nOutcome of Candidate Credentials
Review\n";
if (age>55)
{
cout<<"\nThe candidate is nat eligible for any job
because his age is over 55.";
}
else
{
if (qualification == 2 || qualification == 3)
}
if (age >= 35)
{
if (total_work_exp>=10)
}
if ((expected_salary-1500)<=100)
{
cout<<"\nThe candidate is eligible for Analyst and
Management Job Category";
cout<<"\nOtfered Salary is 1500 OMR";
cout<<"\nThe interview date is 01/04/2021";
}
else
{
cout<<"\nThe candidate is nat eligible for Analyst
and Management Job Category";
cout<<"\nThe difference between expected salary
and offered salary is more than 100 OMR";
}
}
else
{
cout<<"\nThe candidate isnot eligible for Analyst
and Management Job Category";
coute<<"\nThe work experience s less than 10
years";
}
}
}
Step by step
Solved in 2 steps with 1 images