0% found this document useful (0 votes)
145 views104 pages

Census Data Management System

This document describes a census data collection management system developed using C++. It includes program flow diagrams, modular descriptions, and code snippets. The system allows users (aam admi) to enter, view, and edit their census data. It also allows authorized board members to view and delete user data through login authentication. The program uses graphical user interface and stores data in a binary file for easy retrieval and updating of records.
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)
145 views104 pages

Census Data Management System

This document describes a census data collection management system developed using C++. It includes program flow diagrams, modular descriptions, and code snippets. The system allows users (aam admi) to enter, view, and edit their census data. It also allows authorized board members to view and delete user data through login authentication. The program uses graphical user interface and stores data in a binary file for easy retrieval and updating of records.
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/ 104

CENSUS DATA

MANAGEMENT
SYSTEM
ABSTRACT:
Requirements definition
and management is recognized as a
necessary step in the delivery of successful
system s and software projects, discipline is
also required by standards, regulations, and
quality improvement initiatives. Creating
and managing requirements is a challenge
of IT, systems and product development
projects or indeed for any activity where you
have to manage a contractual relationship.
Organization need to effectively define and
manage requirements to ensure they are
meeting needs of the customer, while
proving compliance and staying on the
schedule and within budget. The impact of
a poorly expressed requirement can bring a

business out of compliance or even cause


injury or death. Requirements definition
and management is an activity that can
deliver a high, fast return on investment.
The CENSUS DATA
HANDLING SYSTEM undertaken as a
project is based on relevant technologies.
The main aim of this project is to develop
software for census data collecting
organization. This project has been
developed to carry out the processes easily
and quickly, which is not possible with the
manuals systems, which are overcome by
this software. This project is developed
using c++ language and. Hence it provides
the complete solution for the current
management system.

PROGRAM FLOW DIAGRAM


FOR THE CENSUS DATA
COLLECTION MANGEMENT
SYSTEM:

This diagram represents a process in which


relevant data is collected from the user. In
this example, users (or aam aadmi) can fill
in a census data collection form and edit
them at any later stage of time. Also this
program is capable of handling database of
a board member board member (government
officials for the data collection).

MODULAR DESCRIPTION:

AAM ADMI:

ENTER

EDIT

VIEW

BOARD MEMBER:

VIEW

EDIT

EXIT

Module 1-AAM ADMI:


SUB MODULE 1- ENTER
DETAILS:
The module ENTER is literally the form for
the users to fill detail in their newly

generated censes information form. ENTER


is opened with the following details of the
user.

AADHAR CARD NO.

Name

Fathers name

Age

Address

Taluka

District

Contact Details

Email id (if any)

SUB MODULE 2- EDIT


DETAILS:
The module EDIT helps the user to edit
his/her information at any stage of time
after entering the information for the first
time.

SUB MODULE 3- VIEW


DETAILS:

The module VIEW is the option for the user


(aam admi) to view his/her entered
information & also after editing.

Module 2-BOARD
MEMBER:
This module contains two functions view
and delete. This module is operational for
only board members as this module in the
program is password protected. Hence only
board members are liable to view or edit the
data for a particular user. Following is the
brief description of the sub modules:

SUB MODULE 1- VIEW


DETAILS:
In this sub module the board
member can VIEW the information of any
user using his adhaar card number. The
use of this is exclusively in the board
department as the board members who
have a username and password are allowed
to view the details.

SUB MODULE 2- DELETE


DETAILS:
In this sub module the board member can
DELETE the information of any user using
his adhaar card number. The use of this is
exclusively in the board department as the
board members who have a username and
password are allowed to view the details.

GRAPHICAL INTERFACE OF
THE PROGRAM :
This program uses simple but attractive
graphics. The census data collection module
collects the data in a tabular form . The
entering process of username and
passwords in various places in the program
also uses a tabular and a well arranged
form. The view module is also one of the
best showcase of the graphical user
interface used in the database.

PROCESS DIAGRAM FOR


ENTERING CENSUS DATA

Level 0:

Level 1:

PROGRAM:
#include<conio.h>
#include<fstream.h>
#include<stdio.h>
#include<string.h>
#include<process.h>
#include<dos.h>
#include<bios.h>
#include<ctype.h>
#include<stdlib.h>

#define ENTER 0x1c0d


//defining navigation keys
#define LEFT_ARROW_Key 0x4B00
#define RIGHT_ARROW_Key 0x4D00
#define UP_ARROW_Key 0x4800
#define DOWN_ARROW_Key 0x5000

char
t_left[2],b_right[2],t_right[2],b_left[2],ver_line[2],hor_line[2];
//declaring graphics strings
char
junc[2],junc_up[2],junc_down[2],junc_left[2],junc_right[2];
int i,l;
//declaration of counter
void reset();
void def();
the

//prototypes for all the functions used in

//program (except main)


void a_a_enter();
void a_a_view();
void a_a_edit();
void b_m_view();
void b_m_delete();
void manager();

void get_adhar_no();
void get_name();
void get_age();
void get_gender();
void get_fname();
void get_occupation();
void get_m_status();
void get_address();
void get_pincode();
void get_password();
void a_a_tableview();
void highlight_b_m();
void highlight_a_a();
void highlight_a_a_enter();
void highlight_a_a_view();
void highlight_a_a_edit();
void highlight_b_m_view();
void highlight_b_m_delete();

void response_a_a();
void response_b_m();
void response_a_a_enter();
void response_a_a_view();
void response_a_a_edit();
void response_b_m_view();
void response_b_m_delete();

void choice2(int choice1);

void decoration();

struct a_a
{
char address[50];
char pincode[20];
char occupation[30];
char m_status[10];
char fname[30];
char password[25];
char gender[10];
char adhar_no[12];
char name[30];
int age;
}block;

class aam_admi
{
private:

char address[50];
char pincode[10];
char occupation[30];
char m_status[10];
char f_name[30];
char password[25];
char gender[10];
protected:
char adhar_no[30];
char name[30];
int age;
public:
void enter()
{
get_adhar_no();
strcpy(adhar_no,block.adhar_no);
strcpy(name,block.name);
age=block.age;
strcpy(gender,block.gender);
strcpy(f_name,block.fname);
strcpy(m_status,block.m_status);
strcpy(occupation,block.occupation);
strcpy(address,block.address);
strcpy(pincode,block.pincode);
strcpy(password,block.password);
}
int view(char a_no[30],char pass[25]);
void edit();
};

class board_member:public aam_admi


{
public: void view()
{
cout<<"\nAdhaar no : "<<adhar_no<<endl;
cout<<"Name : "<<name<<endl;
cout<<"Age : "<<age<<endl;
}
int check(char a_no[30])
{
if(strcmp(a_no,adhar_no)==0)
return 1;
else
return 0;
}
};

int aam_admi::view(char a_no[30],char pass[25])


{
clrscr();
if(strcmp(a_no,adhar_no)==0 && strcmp(pass,password)==0)
{ cout<<"The datails for Adhaar no. "<<a_no<<" are : ";
strcpy(block.adhar_no,adhar_no);
strcpy(block.name,name);
block.age=age;
strcpy(block.gender,gender);
strcpy(block.fname,f_name);
strcpy(block.m_status,m_status);
strcpy(block.occupation,occupation);
strcpy(block.address,address);
strcpy(block.pincode,pincode);
a_a_tableview();

return 1;
}
else
{
if(strcmp(a_no,adhar_no)==0 && strcmp(pass,password)!
=0)
{
cout<<endl<<"Wrong Password!!!";
cout<<"Press any key to exit"<<endl;
cout<<"Press Backspace to return to previous menu";
char ch;
ch=getch();
if(ch=='\b')
highlight_a_a_view();
else
exit(0);
return 1;
}
else
return 0;
}
}
void aam_admi::edit()
{
clrscr();
get_name();
strcpy(name,block.name);
age=block.age;
strcpy(gender,block.gender);
strcpy(f_name,block.fname);
strcpy(m_status,block.m_status);

strcpy(occupation,block.occupation);
strcpy(address,block.address);
strcpy(pincode,block.pincode);
getch();
}

int main()
{
clrscr();
highlight_a_a();
return 0;
}

void a_a_enter()
{
clrscr();
fstream file;
file.open("project1.dat",ios::app|ios::binary);
aam_admi temp;
temp.enter();
file.write((char*)&temp,sizeof(aam_admi));
clrscr();
reset();
decoration();
cout<<"\nData entered"<<endl;
file.close();
cout<<endl<<endl<<endl;
cout<<"Press any key to exit"<<endl;
cout<<"Press Backspace to return to previous menu";
char ch;

ch=getch();
if(ch=='\b')
highlight_a_a_enter();
else
exit(0);
}

void a_a_view()
{
clrscr();
reset();
fstream file;
file.open("project1.dat",ios::in|ios::binary);
if(!file)
cout<<"No data available";
else
{
aam_admi temp;
char a_no[30],pass[25];
int value=0;
cout<<"Enter the aadhar no for which you want to view
details"<<endl;
gets(a_no);
int s,h;
cout<<"Please enter the password.\n";
for(s=0;s<100;)
{pass[s]=getch();
if(pass[s]=='\b')
{
clrscr();
cout<<"Enter the aadhar no for which you want to
view details"<<endl;

cout<<a_no;
cout<<"\nPlease enter the password.\n";
for(h=0;h<s-1;h++)
{
cout<<'*';
}
s--;
}
else
{if(pass[s]=='\r')
{pass[s]='\0';
break;
}
else
{cout<<'*';
s++;
}
}
}
decoration();
while(file.eof()!=1)
{
file.read((char*)&temp,sizeof(temp));
value = temp.view(a_no,pass);
if(value==1)
break;
}
}
getch();
file.close();
clrscr();
reset();
cout<<endl<<endl<<endl;
cout<<"Press any key to exit"<<endl;

cout<<"Press Backspace to return to previous menu";


char ch;
ch=getch();
if(ch=='\b')
highlight_a_a_view();
else
exit(0);
}

void a_a_edit()
{
clrscr();
reset();
fstream file;
file.open("project1.dat",ios::in|ios::out|ios::binary);
aam_admi temp;
char a_no[30],pass[25];
int pos,value;
cout<<"Enter the aadhar no for which you want to edit
details\n";
gets(a_no);
int s,h;
cout<<"Please enter the password.\n";
for(s=0;s<100;)
{pass[s]=getch();
if(pass[s]=='\b')
{
clrscr();
cout<<"Enter the aadhar no for which you want to
edit details\n";
cout<<a_no;
cout<<"\nPlease enter the password.\n";
for(h=0;h<s-1;h++)

{
cout<<'*';
}
s--;
}
else
{if(pass[s]=='\r')
{pass[s]='\0';
break;
}
else
{cout<<'*';
s++;
}
}
}
while(file.eof()!=1)
{
file.read((char*)&temp,sizeof(temp));
value = temp.view(a_no,pass);
if(value==1)
break;
}
pos=file.tellg();
temp.edit();
file.seekp(pos-sizeof(temp));
file.write((char*)&temp,sizeof(temp));
clrscr();
reset();
decoration();
cout<<"\nData edited."<<endl;
file.close();
cout<<endl<<endl<<endl;
cout<<"Press any key to exit."<<endl;

cout<<"Press Backspace to return to previous menu.";


char ch;
ch=getch();
if(ch=='\b')
highlight_a_a_edit();
else
exit(0);
}

void b_m_view()
{
clrscr();
reset();
fstream file;
file.open("project1.dat",ios::in|ios::binary);
if(!file)
cout<<"\nNo data available";
else
{
board_member temp;
file.seekg(0);
while(file.read((char*)&temp,sizeof(temp)))
{
temp.view();
}
}
file.close();
cout<<endl<<endl<<endl;
cout<<"Press any key to exit"<<endl;
cout<<"Press Backspace to return to previous menu";

char ch;
ch=getch();
if(ch=='\b')
highlight_b_m_view();
else
exit(0);
}

void b_m_delete()
{
clrscr();
reset();
fstream file1,file2;
file1.open("project1.dat",ios::in|ios::binary);
file2.open("temp.dat",ios::in|ios::out|ios::binary);
board_member temp,sink;
char a_no[30],choice[10];
int confirm=0,i=0;
cout<<"Enter the aadhar no for the data which you want to
delete"<<endl;
gets(a_no);
while(file1.read((char*)&temp,sizeof(temp)))
{
confirm=temp.check(a_no);
if(confirm==1)
{
cout<<"\nAre you sure\n";
gets(choice);
i++;
if(choice[0]=='Y' || choice[0]=='y')
{ cout<<"\nRecord deleted";
getch();

}
else
{
cout<<"\nRecord not deleted";
file2.write((char*)&temp,sizeof(temp));
getch();
}
}
else
file2.write((char*)&temp,sizeof(temp));
}
file1.close();
file2.close();
remove("project1.dat");
rename("temp.dat","project1.dat");
if(i==0)
{
cout<<"\nNo entry found";
getch();
}
cout<<endl<<endl<<endl;
cout<<"Press any key to exit"<<endl;
cout<<"Press Backspace to return to previous menu";
char ch;
ch=getch();
if(ch=='\b')
highlight_b_m_view();
else
exit(0);
}

void manager()
{
fstream file;
file.open("managers.txt",ios::in);
char ch;
char name[30],rname[30];
char pass[30],rpass[30];
int s,h,n;
n=0;
clrscr();
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193,junc_left[0]=
195,junc_right[0]=180;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
junc[1]=junc_up[1]=junc_down[1]=junc_left[1]=junc_right[1]
='\0';
cout<<"Please enter your Username and Password : ";
cout<<endl<<endl;
gotoxy(20,10);
cout<<t_left;
for(i=0;i<10;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<25;i++)
cout<<hor_line;
cout<<t_right;

gotoxy(20,11);
cout<<ver_line;
cout<<" USERNAME ";
cout<<ver_line;
for(i=0;i<25;i++)
cout<<' ';
cout<<ver_line;
gotoxy(20,12);
cout<<junc_left;
for(i=0;i<10;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<25;i++)
cout<<hor_line;
cout<<junc_right;
gotoxy(20,13);
cout<<ver_line;
cout<<" PASSWORD ";
cout<<ver_line;
for(i=0;i<25;i++)
cout<<' ';
cout<<ver_line;
gotoxy(20,14);
cout<<b_left;
for(i=0;i<10;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<25;i++)
cout<<hor_line;
cout<<b_right;

gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

Government of

gotoxy(32,11);
gets(name);
gotoxy(32,13);
for(s=0;s<100;)
{pass[s]=getch();
if(pass[s]=='\b')
{
clrscr();
cout<<"Please enter your Username and Password :
";
cout<<endl<<endl;
gotoxy(20,10);
cout<<t_left;
for(i=0;i<10;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<25;i++)
cout<<hor_line;
cout<<t_right;
gotoxy(20,11);
cout<<ver_line;
cout<<" USERNAME ";
cout<<ver_line;
cout<<name;

l=strlen(name);
for(i=0;i<25-l;i++)
cout<<' ';
cout<<ver_line;
gotoxy(20,12);
cout<<junc_left;
for(i=0;i<10;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<25;i++)
cout<<hor_line;
cout<<junc_right;
gotoxy(20,13);
cout<<ver_line;
cout<<" PASSWORD ";
cout<<ver_line;
for(i=0;i<25;i++)
cout<<' ';
cout<<ver_line;
gotoxy(20,14);
cout<<b_left;
for(i=0;i<10;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<25;i++)
cout<<hor_line;
cout<<b_right;
gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;

cout<<"
Government of India";

gotoxy(32,13);
for(h=0;h<s-1;h++)
{
cout<<'*';
}
s--;
}
else
{if(pass[s]=='\r')
{pass[s]='\0';
break;
}
else
{cout<<'*';
s++;
}
}
}

while(file.eof()!=1)
{
file.getline(rname,30,'.');
file.getline(rpass,30,'.');

if(strcmp(name,rname)==0 && strcmp(pass,rpass)==0)


{
n++;
break;

}
}
if(n==0)
{
gotoxy(27,18);
textcolor(RED);
cputs("Unauthorised access!!!");
gotoxy(20,19);
cout<<"Press Backspace to return to main menu.";
gotoxy(20,20);
cout<<"Press any other key to exit.";
ch=getch();
reset();
if(ch=='\b')
highlight_a_a();
else
exit(0);
}
file.close();
}

void reset()
//function to reset the colours
{
textcolor(WHITE);
textbackground(BLACK);
clrscr();
}
void def()
{

//function to get the default colours

textcolor(LIGHTGRAY);
textbackground(BLACK);
clrscr();
}
void get_adhar_no()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;

for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

Government of

gotoxy(16,4);
char adhar_no[20];
gets(adhar_no);
strcpy(block.adhar_no,adhar_no);
get_name();

void get_name()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;

for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

gotoxy(16,6);
char name[30];
gets(name);
strcpy(block.name,name);
get_age();
}
void get_age()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);

Government of

t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

gotoxy(16,8);
int age;
cin>>age;

Government of

block.age=age;
get_gender();

void get_gender()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)

cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)

cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

Government of

gotoxy(16,10);
char gender[10];
gets(gender);
strcpy(block.gender,gender);
get_fname();

void get_fname()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';

cout<<"Please enter the following details : "<<endl;


cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";

cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";

cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

gotoxy(16,12);
char fname[30];
gets(fname);
strcpy(block.fname,fname);
get_occupation();

Government of

void get_occupation()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

Government of

gotoxy(16,14);
char occupation[20];
gets(occupation);
strcpy(block.occupation,occupation);
get_m_status();

void get_m_status()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;

t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<block.occupation;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;

for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

gotoxy(16,16);

Government of

char m_status[10];
gets(m_status);
strcpy(block.m_status,m_status);
get_address();

void get_address()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;

cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;

cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<block.occupation;
cout<<endl;

for(i=0;i<14;i++)

cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<block.m_status;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

gotoxy(16,18);
char address[50];
gets(address);
strcpy(block.address,address);
get_pincode();

void get_pincode()
{
clrscr();

Government of

reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";

cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<block.occupation;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<block.m_status;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<block.address;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

Government of

gotoxy(16,20);
char pincode[20];
gets(pincode);
strcpy(block.pincode,pincode);
get_password();
}

void get_password()
{
clrscr();
reset();
int h,s;
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';
cout<<"Please enter the following details : "<<endl;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;

cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;

cout<<block.occupation;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<block.m_status;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<block.address;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";

cout<<ver_line;
cout<<block.pincode;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

gotoxy(16,22);
char password[25];
for(s=0;s<100;)
{password[s]=getch();
if(password[s]=='\b')

Government of

{
clrscr();
reset();
cout<<"Please enter the following details : "<<endl;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Adhaar Number";
cout<<" ";
cout<<ver_line;
cout<<block.adhar_no;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)

cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;

for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<block.occupation;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<block.m_status;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<block.address;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<block.pincode;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Password";
cout<<"
";
cout<<ver_line;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
Government of India";
gotoxy(16,22);
for(h=0;h<s-1;h++)

{
cout<<'*';
}
s--;
}
else
{if(password[s]=='\r')
{password[s]='\0';
break;
}
else
{cout<<'*';
s++;
}
}
}
strcpy(block.password,password);
}
void a_a_tableview()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
junc[0]=197,junc_up[0]=194,junc_down[0]=193;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]=junc[1]=junc_up[1]=junc_down[1]='\0';

cout<<"The details for Adhaar number "<<block.adhar_no<<"


are : ";
cout<<endl<<endl<<endl<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_up;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Name";
cout<<"
";
cout<<ver_line;
cout<<block.name;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Age";
cout<<"
";
cout<<ver_line;
cout<<block.age;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;

cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Gender";
cout<<"
";
cout<<ver_line;
cout<<block.gender;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Father's Name";
cout<<" ";
cout<<ver_line;
cout<<block.fname;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Occupation";
cout<<" ";
cout<<ver_line;
cout<<block.occupation;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Marital Status";
cout<<"";
cout<<ver_line;
cout<<block.m_status;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Address";
cout<<"
";
cout<<ver_line;
cout<<block.address;
cout<<endl;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc;
for(i=0;i<65;i++)
cout<<hor_line;
cout<<"Pincode";
cout<<"
";
cout<<ver_line;
cout<<block.pincode;
cout<<endl;

for(i=0;i<14;i++)
cout<<hor_line;
cout<<junc_down;
for(i=0;i<65;i++)
cout<<hor_line;

cout<<endl<<endl;
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"
India";

Government of

void highlight_a_a()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';

cout<<"
";
cout<<"W W EEEEE LL CCCCC OOOOO MM MM
EEEEE
";
cout<<endl;
cout<<"
";
cout<<" W W W EEE LL C
O O M M M EEE
";
cout<<endl;
cout<<"
";
cout<<" W W EEEEE LLLLL CCCCC OOOOO M M
EEEEE
";
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<"
";
cputs(t_left);
for(i=0;i<14;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
cout<<"
";
cputs(ver_line);
cputs(" AAM AADMI ");
cputs(ver_line);
cout<<endl;
cout<<"
";
cputs(b_left);
for(i=0;i<14;i++)
cputs(hor_line);
cputs(b_right);
cout<<endl;
cout<<endl<<endl<<endl<<endl<<endl;
cout<<"
";
cout<<t_left;
for(i=0;i<14;i++)
cout<<hor_line;

cout<<t_right;
cout<<endl;
cout<<"
";
cout<<ver_line;
cout<<" BOARD MEMBER ";
cout<<ver_line;
cout<<endl;
cout<<"
";
cout<<b_left;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<b_right;
cout<<endl;
cout<<endl<<endl<<endl;
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Esc to quit
Government of India";

bioskey(1);
response_a_a();
}

void highlight_b_m()
{
clrscr();
reset();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;

t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
cout<<"
";
cout<<"W W EEEEE LL CCCCC OOOOO MM MM
EEEEE
";
cout<<endl;
cout<<"
";
cout<<" W W W EEE LL C
O O M M M EEE
";
cout<<endl;
cout<<"
";
cout<<" W W EEEEE LLLLL CCCCC OOOOO M M
EEEEE
";
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<"
";
cout<<t_left;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
cout<<"
";
cout<<ver_line;
cout<<" AAM AADMI ";
cout<<ver_line;
cout<<endl;
cout<<"
";
cout<<b_left;
for(i=0;i<14;i++)
cout<<hor_line;
cout<<b_right;
cout<<endl;
cout<<endl<<endl<<endl<<endl<<endl;
cout<<"
";

cputs(t_left);
for(i=0;i<14;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
cout<<"
";
cputs(ver_line);
cputs(" BOARD MEMBER ");
cputs(ver_line);
cout<<endl;
cout<<"
";
cputs(b_left);
for(i=0;i<14;i++)
cputs(hor_line);
cputs(b_right);
cout<<endl;
cout<<endl<<endl<<endl;
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Esc to quit
Government of India";

bioskey(1);
response_b_m();
}
void highlight_a_a_enter()
{
clrscr();
textcolor(BLACK);
textbackground(WHITE);

t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
cout<<"Please select your preffered choice : ";
cout<<endl<<endl;
gotoxy(35,4);
cputs(t_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
gotoxy(35,5);
cputs(ver_line);
cputs(" ENTER ");
cputs(ver_line);
cout<<endl;
gotoxy(35,6);
cputs(b_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(b_right);

gotoxy(35,10);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,11);

cout<<ver_line;
cout<<" VIEW ";
cout<<ver_line;
cout<<endl;
gotoxy(35,12);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;

gotoxy(35,16);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,17);
cout<<ver_line;
cout<<" EDIT ";
cout<<ver_line;
cout<<endl;
gotoxy(35,18);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;
gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Backspace to go back
Government of India";

bioskey(1);
response_a_a_enter();
}
void highlight_a_a_view()
{
clrscr();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
cout<<"Please select your preffered choice : ";
cout<<endl<<endl;
gotoxy(35,4);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,5);
cout<<ver_line;
cout<<" ENTER ";
cout<<ver_line;
cout<<endl;
gotoxy(35,6);
cout<<b_left;
for(i=0;i<7;i++)

cout<<hor_line;
cout<<b_right;

gotoxy(35,10);
cputs(t_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
gotoxy(35,11);
cputs(ver_line);
cputs(" VIEW ");
cputs(ver_line);
cout<<endl;
gotoxy(35,12);
cputs(b_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(b_right);

gotoxy(35,16);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,17);
cout<<ver_line;
cout<<" EDIT ";
cout<<ver_line;
cout<<endl;

gotoxy(35,18);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;
gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Backspace to go back
Government of India";

bioskey(1);
response_a_a_view();
}
void highlight_a_a_edit()
{
clrscr();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
cout<<"Please select your preffered choice : ";
cout<<endl<<endl;
gotoxy(35,4);
cout<<t_left;
for(i=0;i<7;i++)

cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,5);
cout<<ver_line;
cout<<" ENTER ";
cout<<ver_line;
cout<<endl;
gotoxy(35,6);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;

gotoxy(35,10);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,11);
cout<<ver_line;
cout<<" VIEW ";
cout<<ver_line;
cout<<endl;
gotoxy(35,12);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;

gotoxy(35,16);
cputs(t_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
gotoxy(35,17);
cputs(ver_line);
cputs(" EDIT ");
cputs(ver_line);
cout<<endl;
gotoxy(35,18);
cputs(b_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(b_right);

gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Backspace to go back
Government of India";

bioskey(1);
response_a_a_edit();
}
void highlight_b_m_view()
{
clrscr();
textcolor(BLACK);
textbackground(WHITE);

t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
cout<<"Please select your preffered choice : ";
cout<<endl<<endl;
gotoxy(35,4);
cputs(t_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
gotoxy(35,5);
cputs(ver_line);
cputs(" VIEW ");
cputs(ver_line);
cout<<endl;
gotoxy(35,6);
cputs(b_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(b_right);

gotoxy(35,10);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,11);

cout<<ver_line;
cout<<" DELETE";
cout<<ver_line;
cout<<endl;
gotoxy(35,12);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;
gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Backspace to go back
Government of India";
bioskey(1);
response_b_m_view();
}
void highlight_b_m_delete()
{
clrscr();
textcolor(BLACK);
textbackground(WHITE);
t_left[0]=-38,b_right[0]=39,t_right[0]=191,b_left[0]=192,ver_line[0]=179,hor_line[0]=
196;
t_left[1]=b_right[1]=t_right[1]=b_left[1]=ver_line[1]=hor_line
[1]='\0';
cout<<"Please select your preffered choice : ";
cout<<endl<<endl;

gotoxy(35,4);
cout<<t_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<t_right;
cout<<endl;
gotoxy(35,5);
cout<<ver_line;
cout<<" VIEW ";
cout<<ver_line;
cout<<endl;
gotoxy(35,6);
cout<<b_left;
for(i=0;i<7;i++)
cout<<hor_line;
cout<<b_right;

gotoxy(35,10);
cputs(t_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(t_right);
cout<<endl;
gotoxy(35,11);
cputs(ver_line);
cputs(" DELETE");
cputs(ver_line);
cout<<endl;
gotoxy(35,12);
cputs(b_left);
for(i=0;i<7;i++)
cputs(hor_line);
cputs(b_right);

gotoxy(1,24);
for(i=0;i<80;i++)
cout<<hor_line;
cout<<"Use arrow keys to navigate,Backspace to go back
Government of India";

bioskey(1);
response_b_m_delete();
}
void response_a_a()
{
//funtion gives the response when any key is
pressed
p:;
//with "AAM ADMI" selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27||ch==8)
exit(0);
switch(key)
{
case ENTER:
clrscr();
reset();
highlight_a_a_enter();
break;
case DOWN_ARROW_Key:
clrscr();
reset();

highlight_b_m();
break;
case UP_ARROW_Key:
clrscr();
reset();
highlight_b_m();
break;
default:
bioskey(1);
goto p;
}
}

void response_b_m()
{
//function gives the response when any key is
pressed
p:;
//and "BOARD MEMBER" is selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27||ch==8)
exit(0);
switch(key)
{
case ENTER:
clrscr();
reset();
manager();
highlight_b_m_view();
break;
case UP_ARROW_Key:

clrscr();
reset();
highlight_a_a();
break;
case DOWN_ARROW_Key:
clrscr();
reset();
highlight_a_a();
break;
default:
bioskey(1);
goto p;
}
}

void response_a_a_enter()
{
//funtion gives the response when any key is
pressed
p:;
//with "AAM ADMI" selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27)
exit(0);
if(ch==8)
highlight_a_a();
switch(key)
{
case ENTER:
clrscr();
a_a_enter();

break;
case DOWN_ARROW_Key:
clrscr();
reset();
highlight_a_a_view();
break;
case UP_ARROW_Key:
clrscr();
reset();
highlight_a_a_edit();
break;
default:
bioskey(1);
goto p;
}
}

void response_a_a_view()
{
//funtion gives the response when any key is
pressed
p:;
//with "AAM ADMI" selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27)
exit(0);
if(ch==8)
highlight_a_a();
switch(key)
{

case ENTER:
clrscr();
a_a_view();
break;
case DOWN_ARROW_Key:
clrscr();
reset();
highlight_a_a_edit();
break;
case UP_ARROW_Key:
clrscr();
reset();
highlight_a_a_enter();
break;
default:
bioskey(1);
goto p;
}
}

void response_a_a_edit()
{
//funtion gives the response when any key is
pressed
p:;
//with "AAM ADMI" selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27)
exit(0);
if(ch==8)
highlight_a_a();
switch(key)

{
case ENTER:
clrscr();
a_a_edit();
break;
case DOWN_ARROW_Key:
clrscr();
reset();
highlight_a_a_enter();
break;
case UP_ARROW_Key:
clrscr();
reset();
highlight_a_a_view();
break;
default:
bioskey(1);
goto p;
}
}

void response_b_m_view()
{
//funtion gives the response when any key is
pressed
p:;
//with "AAM ADMI" selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27)
exit(0);
if(ch==8)

highlight_b_m();
switch(key)
{
case ENTER:
clrscr();
b_m_view();
break;
case DOWN_ARROW_Key:
clrscr();
reset();
highlight_b_m_delete();
break;
case UP_ARROW_Key:
clrscr();
reset();
highlight_b_m_delete();
break;
default:
bioskey(1);
goto p;
}
}

void response_b_m_delete()
{
//funtion gives the response when any key is
pressed
p:;
//with "AAM ADMI" selected
int key = bioskey(0);
char ch;
ch=key;
if(ch==27)

exit(0);
if(ch==8)
highlight_b_m();
switch(key)
{
case ENTER:
clrscr();
b_m_delete();
break;
case DOWN_ARROW_Key:
clrscr();
reset();
highlight_b_m_view();
break;
case UP_ARROW_Key:
clrscr();
reset();
highlight_b_m_view();
break;
default:
bioskey(1);
goto p;
}
}

void decoration()
{
clrscr();
char ch=219;
int i,j;
for(i=0;i<76;i++)

{
clrscr();
gotoxy(1,12);
for(j=0;j<i;j++)
cout<<ch;
delay(20);
}
clrscr();
}

You might also like