C Program to write Job Program Logic.
How does this program work?
- This code helps to how to write Job Program logic.
Here is the code
int main()
{
int a,p,c,q;
printf("Welcome to Jobmela\n");
printf("Please Enter your age:\n");
scanf("%d",&a);
if(a>18&&a< 40)
{
printf("Physically Handicapped:\n1-Yes\n2-No\n");
scanf("%d",&p);
if(p==1)
{
printf("Sorry we don't have any job for you here");
}
if(p==2)
{
printf("Types of Jobs Available are\n 11.Project Designer\n 22.Project Employee\n 33.Assistant Developer\n");
printf("Select Your option for which You are applying\n");
scanf("%d",&c);
printf("Please choose your qualification\n");
printf("111.M tech --> 222.B tech --> 333.Degree\n");
scanf("%d",&q);
switch(c)
{
case 11 :
{
if(q==111)
printf("You are eligible for the job\n please contact our manager and attend the interview\n");
else if(q==222||q==333)
printf("Please try for the other job in the office to face the interview\n");
else
printf("Wrong option");
}
break;
case 22 :
{
if(q==111||q==222)
printf("You are eligible for the job\n please contact our manager and attend the interview\n");
else if(q==333)
printf("Please try for the other job in the office to face the interview\n");
else
printf("Wrong option");
}
break;
case 33 :
{
if(q==111||q==222||q==333)
printf("You are eligible for the job\n please contact our manager and attend the interview\n");
else
printf("Wrong option");
}
break;
}
}
else
printf("Wrong option");
}
else
printf("You are not eligible for any job as of age factor");
}