0% found this document useful (0 votes)
7 views2 pages

Se Lab 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Se Lab 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

#include<stdio.

h>
#include<string.h>
#include<stdlib.h>
void main()
{
char s2[20];
printf("ENTER USER ID: ");
scanf("%s",s2);
if(strcmp(s2,"suraj") == 0)
printf("ENTER");
else
{
printf("invalid user id!");
exit(0);
}
char y[10];
printf(" PASSWORD: ");
scanf("%s",y);
if(strcmp(y,"1234") == 0)
{
printf("YOUR APPLICANT-ID IS 22271A6651\n");
printf("FILL THE REGISTRATION FORM\n");
}
else
{
printf("invalid PASSWORD!\n");
exit(0);
}
char
c[12],s1[20],d[10],g[10],f[10],m[10],b[10],P[30],t[30],D[10],s[10],C[10],
p[6],M[10],i[30],n[10];
printf("ENTER YOUR NAME: ");
scanf("%s",s1);
printf("ENTER YOUR SURNAME: ");
scanf("%s",n);
printf("ENTER YOUR DATE OF BIRTH: ");
scanf("%s",d);
printf("ENTER YOUR GENDER: ");
scanf("%s",g);
printf("ENTER YOUR FATHER'S NAME: ");
scanf("%s",f);
printf("ENTER YOUR MOTHER'S NAME: ");
scanf("%s",m);
printf("ENTER YOUR BIRTH PLACE: ");
scanf("%s",b);
printf("ENTER YOUR PERMANENT ADDRESS: ");
scanf("%s",P);
printf("ENTER YOUR TEMPARORY ADDRESS: ");
scanf("%s",t);
printf("ENTER YOUR DISTRICT: ");
scanf("%s",D);
printf("ENTER YOUR STATE: ");
scanf("%s",s);
printf("ENTER YOUR COUNTRY: ");
scanf("%s",C);
printf("ENTER YOUR PINCODE: ");
scanf("%s",p);
printf("ENTER YOUR MOBILE NUMBER: ");
scanf("%s",M);
printf("ENTER YOUR EMAILID: ");
scanf("%s",i);
printf("ENTER APPLICANT ID: ");
scanf("%s",c);
printf("SUCESSFULLY COMPLETED REGISTRATION\n");
printf("YOUR APPOINTMENT-ID IS:%s",M);
printf("\n");
char a[12];
{
start:
printf("ENTER APPLICANT-ID: ");
scanf("%s",a);
if(strcmp(c,a) == 0)
printf("YOUR APPOINTMENT DATE FOR VERIFICATION IS ON 4-10-2023 AND
TIME AT 10:00AM\n");
else
{
printf("INVALID APPLICANT-ID!\n");
goto start;
}
}
//ON VERIFICATION DAY
char B[20], count;
printf("ENTER YOUR APPOINTMENT-ID: ");
scanf("%s",B);
if(strcmp(B,M) == 0)
printf("YOUR VERIFICATION-ID IS 420\nSUCESSFULLY COMPLETED
VERIFICATION\n");
else
{
printf("INVALID APPOINTMENT-ID\n");
exit(0);
}
//POLICE ENQUIRY
char Q[5];
printf("ENTER VERIFICATION-ID: ");
scanf("%s",Q);
if(strcmp(Q,"420") == 0)
printf("POLICE ENQUIRY DONE SUCCESSFULLY\n");
else
{
printf("VERIFICATION CANCLLED\n");
exit(0);
}
//PASSPORT MANAGER
printf("OFFICER NAME:SATHISH BABU\n");
printf("STATUS-ID:PASSPORTMANAGER\n");
char Z[10];
printf("ENTER APLICANT-ID\n");
scanf("%s",Z);
if(strcmp(Z,c) == 0)
printf("PASSPORT WILL BE DISPATCHES\n");
else
printf("PASSPORT WILL NOT DISPATCHES\n");
}

You might also like