Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ON
IN
1
CERTIFICATE
full to this or any other university for the award of any other degree or
diploma.
Signature of Supervisor
Name:
Designation: Sr.
Faculty
Organization/Institute:
2
ACKNOWLEDGEMMT
(Pawan kumar)
Enroll:- 1303312706
3
DECLARATION
Place:
Date:
4
5
INDEX
• Acknowledgement …………………………........................... 3
• Declaration ………………………………………………………… 4
• Introduction ……………………………….................... 8
• Abstract ………………………………................... 9
• OVERVIEW …………………………………………. 13
• ER Diagram …………………………………………… 17
• Normalisation …………………………………................. 28
• Code ………………………………………….. 48
6
INTRODUCTION
The project maintains records of all the customers regarding their
insurance policies premiums, and maturity amount in an insurance
company .Since with the rapid urbanization and changing needs of
the society, this has resulted in various kinds of insurance policies
and has made the insurance as a crucial Part of our lives. Eventually,
large numbers of customers are opting for various kinds of insurance.
7
ABSTRACT
The insurance company needs to keep track of details of its target
companies, agent, policyholders, their premium payments and the various
products that are available with it. Hence it is under tremendous pressure
maintaining their day-to-day activities which is currently being done
manually. Entire records have to be updated timely, even a slight mistake
could complicate things. It is very difficult to handle bulk data since
human memory is weaker than electronic counter part. It is time
consuming to summarize these details to produce the reports. The
Insurance management system is a complete solution for organizations,
which need to manage insurance for their vehicles, equipment, buildings,
and other resources. Organizes and tracks insurance vendors and the
policies provided under different coverage We are offering a robust web
based insurance solution, which has the flexibility of customizations to
match the specific needs of clients for achieving their business goal of
good service and revenue generation. Insurance policy administration
system consists of a mathematical notation that captures the relationship
between policies and objects and the entities that manage policies for
those objects. Hence there is need for an automated system, which can
efficiently manage the company, record., provides instant access and one
that improves the productivity. As a result of this automated system, the
activities of the company are performed in the stipulated time and the
reliable and efficient service is ensured to its users.
8
9
System Development Life Cycle
Phase of SDLC
1 System Analysis
2 System Design
3 Coding
4 System Testing
5 System Implementation
6 System Maintenance
10
11
PROBLAM FACE IN CURRENT SYSTEM
• There is time wastage in data accessing, data entry and while data
retrieving from the insurance register.
12
OVERVIEW OF THE PROJECT
SYSTEM DESCRIPTION:
1. Policy Schemes.
2. Agent Log n.
3. Customer Login.
4. Administrator Login.
5. About us.
6. Contact us.
POLICY SCHEMES:-
1. LIFE INSURANCE:
c) Endowment policy
d) Pension plans
2. GENERAL INSURANCE:-
a) Home insurance
b) Auto insurance
c) Fire insurance
13
AGENT LOGIN
a) Old Agent
b) New Agent
1. Basic agent information like contact details and addres. which will
be shown in customer insurance information window
CUSTONIER LOGIN,
ADMINISTRATOR LOGIN,
Administrator has rights to.
14
ABOUT US:-
It contains information about the organization's history and its
achievements.
CONTACT US:-
It co.ins the contract details of the organization's various branches
located in different parts of a county.
REPORTS:
• Sales report
15
16
EXTENDED ER-DIAGRAM
Policies for Mony back policy and Jeevan kishor policy ,Jeevan
Anandcome under life insurance policy has type and issue date.
ENTITIES:
1) Home Policy
2) Jeevan Kishor
4) Jeevan Kishor
5) Jeevan Anand
17
KEY ATTRIBUTES:
1)Policy: pno
2)policy_type : polno
3)Home_policy:policyno
4)Endowolpment :hno
5)Vehicle: vehicle_no
6)Customer: custid
OTHER ATTRIBUTES:
1)Policy:price,coverage.
2)customer_policy:type,issue_date
3)Home_policy:date,term_price
4)Agent :name
5) Policy holder
6)Customer:address,phno
18
19
CONVERTING ER DIAGRAM INTO TABLES
20
1. Converting relationships
• Relationships are based on card inalities and degree of the
relation
• m:n
3. Relations converted
• Also policy and agent table have m:n cardinality resulting in conversion
of relation 'sales, into a table named as 'sales'. The table sales has ph_key
and pol_key from policy holder table and policy table respectively ,as its
composite primary key and agent key from agent table as a foreign key.
21
22
TABLE STRUCTURES
The structure of all tables included in the project is as under:-
1. PH:
NAME CHAR(15)
ADDRESS CHAR(15)
PWD VAR.AR2(10)
DOB DATE
AGE NUMBER(2)
MS VARCHAR2(10)
SEX VARCHAR2(6)
SAL NUMBER(10)
23
2. AGENT
Name Null ? Type
NAME CHAR(20)
ADDRESS CHAR (32)
PHONE NUMBER(10)
"ID NOT NULL NUMBER(5)
PWD VARCHAR2(10)
3. INSURANCE
AMOUNT NUMBER (1 0)
IODATE DATE
24
4. SALES
5. POLICY
TYPE CHAR(32)
TIME_PER NUMBER(4)
25
6. CLAIMANT
SEX CHAR(6)
DOB DATE
MS CHAR(10)
AGE NUMBER.
PHONE NUMBER(10)
VIEW STRUCTURES
Name Null? Type
P_HOLLDER NOT NULL NUMBER
TYPE CHAR(32)
POL_KEY NOT NULL NUMBER(3)
26
3. CLIENT
Name Null? Type
NAME CHAR(15)
ADDRESS CHAR(15)
PHONE NUMBER(1 0)
PREMIUM NUMBER(10)
AMOUNT NUMBER(10)
TYPE CHAR(32)
IODATE DATE
27
NORMALISATION
28
The tables may be normalized under the following guideline:
1. 1NF
DFFINITION:
• Single valued
• All domains in our database are atomic since they are indivisible.
2. 2NF
DEFINITION:
A relational table is said to be in second normal form 2NF if it is in
INF and every non-key attribute is .1Iy functionally dependent upon
primary key.
• Every non-key attributes of the table must be dependent upon the entire
primary key.
• Tables agent policy holder, claimant, insurance, sales are also in 2NF.
29
• our database satisfies all the conditions of 2NF since The tables are in
INF and Every non-key attributes of the table must be dependent upon the
entire primary key.
3.3NF
• The tables insurance ,claimant Policy holder and sales have been
converted into 3NF.
30
Data Flow Diagram (DFD)
The Notation
DFDs show the passage of data through the system by using 5 basic
constructs: Data flows, Processes, Data Stores,
External Entities, and Physical Resources.
Data Flows
A data flow shows the flow of data from a source to a destination. The
flow is shown as an arrowed line with the
arrowhead showing the direction of flow. Each data flow should be
uniquely identified by a meaningful descriptive name
(caption).
Physical Resources
A physical flow represents the flow of material (as opposed to data flows
representing the flow of information), the
31
movement of some resources or goods which are relevant to the
information system, from source to destination. They are
included to aid communication. A physical flow is represented by a broad
arrow. The resource store is represented by a
closed rectangle.
You will find that some of the books, which describe the earlier versions
of SSADM, do not include this symbol. This
notation is not used generally in DFDs. When used it is only included in
the initial set of highlevel
DFDs. Physical flows
add clutter to the DFD by their physical size. However they can be useful
for:
showing significant resource flows and states. This representation is often
more meaningful to users than
logical data flows which may appear a little abstract.
getting started in a project. Users may describe the system in terms of
physical flows and stores.
finally and importantly, the physical resources may actually be what the
system is all about. It is certainly
equally important to send both the goods and the invoice. The practical
aspects of the system may be lost to
an analyst who concentrates too much on the neatness of the data flow.
Advantages of DFDs
A simple but powerful graphic technique which is easily
understood.
represents an information system from the viewpoint of data
movements, which includes the inputs and outputs to
which people can readily relate.
the ability to represent the system at different levels of details gives
added advantage (you can include the
advantages of decomposition listed earlier)
helps to define the boundaries of the system.
a useful tool to use during interviews.
serve to identify the information services the users require, on the
basis of which the future information system will be constructed.
32
33
m
34
35
Hardware and Software Used
RAM — 64 MB
Software Used:-
36
Header Files Used
iostream.h: The manipulators in this library affect the format of
stream operations. Eg: endl, cin, cout etc.
ioconio.h: The manipulation in this library affect the format of steam
operations. Eg: setw(), setprecision() etc.
String.h: This library enables you to manipulate C strings that end in
the char '\0', the null char. unless noted otherwise, these functions return a
pointer to the resulting string in addition to modifying an appropriate
argument. The argument ch is a character, n is an integer, and the other
arguments are strings, which usually means they are names of a char
array, but can be string constants in some cases.
Eg: strcmp, strcpy, strlen, strcat etc.
Math.h: The C++ functions in this library compute certain standard
mathematical functions. These functions are overloaded to
accommodate float, double, and long double. Unless otherwise
indicated, each function has one argument, with the return type being
the same as the argument type (either float, double, or long double).
Ctype.h: Most functions in this library classify a given ASCII character
as a letter, a digit, and so on. Two other functions convert letters between
uppercase and lowercase. Eg: toupper(), isalpha(), isdigit() etc.
Dos.h: dos.h in c: dos.h header file of c language contains functions
for handling interrupts, producing sound, date and time functions etc. It
is borland specific and works in turbo c compiler. Eg: delay function,
sound function etc.
Process.h: Is a C++ header file which contains function declarations
and macros used in working with threads and processes. Most C
compilers that target DOS, Windows 3.1x, Win32, OS/2, Novell
NetWare or DOS extenders supply this header and the library functions
in their C library. Neither the header file nor most of the functions are
defined by either the ANSI/ISO C standard or by POSIX
37
Structures used in this code
Struct address(structure address)
A user defined data type to hold the address of the user.
Includes the variables like house number, area, city and state.
It includes the variables like name ,agent code, agent address, age,
policies sold, salary and category to which the agent belong (for ex
The built-in data types used in this structure are float, integer
character and one user defined data type i.e., address.
The data types used are float, character, integer and one user
38
4. Struct fback (structure feedback)
User defined data type to hold the contents of the feedback form.
Includes variables like age, gender, occupation, income and ratings.
Functions
Main Menu
This function gives us the first screen in our project i.e. main
menu screen to the user.
This function consists of various options for an user.
This function consists of Customer, Agent, Exit options for an user.
This function incorporates switch condition statements which
transfers the execution of the program from one function to the other
function based on the input given by the user.
Getch() function is used to take the input from an user i.e. C –
customer, A- agent, E- exit.
Toupper() function is used to convert the lower case characters to
upper case characters and hence input from the user is case sensitive.
39
Customer menu
Prototype of this function ->void cusmen();
Function definition->void cusmen()
The function definition includes user friendly statements i.e.,
“CUSTOMER MENU” which helps the user to select a specific function,
which he desires to proceed on.
The customer menu includes calling of four functions based on the
requirement of the user.
The functions are “OLD CUSTOMER FUNCTION”, “POLICIES
FUNCTION”, “BACK FUNCTION”, and “EXIT FUNCTION”.
Switch case statements are used to help the user switch to the desired
function he requires.
The user has to provide an appropriate choice to select his/her desired
page of interest.
Gotoxy statements are used to display the statements at the
required coordinates on the output screen.
New Customer
This function is used for the new customer.
It has several questions for a new user like Name, age, salary
Address, Policy term, Policy amount.
The user has to fill the form depending on the criteria of the policy
chosen by him.
Once the new customer fills all the details of the form, the functions
gets the values of premium amount and unique customer code.
Finally all the details of the user will be displayed in the fresh
screen which gives the details of his premium amount and gives him a
unique customer code for future use.
Later the user will be directed to the feedback form.
Old Customer
User has to enter his unique customer code.
40
This function matches the code with the existing code in the system
and gives the details of the user.
If the code doesn’t match then it gives a statement as customer not
found.
It uses strcmp() function to serve this purpose.
New policy
Prototype of this function->void newpol();
Definition of this function->void newpol()
The function does not return any value and hence void is used.
This function displays the different policies that are provided by the
LIC and allows the user to choose any policy that he/she would like to
purchase.
The different policies included in the function are ENDOWMENT
POLICY, MONEY BACK POLICY, JEEVAN KISHORE, and
JEEVAN ANAND AND JEEVAN SURABHI POLICY.
Again the function asks the user to enter an appropriate choice to
select a specific policy.
Switch statements are used in the function to switch to an
appropriate page specified by the user.
Functions corresponding to the policies containing the terms and
conditions are called for.
Policy details
Prototype for this function ->void tnccus();
Function definition->void tnccus();
It consists of the terms and conditions of all the policies.
This function is used to display the terms and conditions of the
policy selected by the user.
Once the user provides his choice, the page consisting of the terms
and conditions of the selected policy will be displayed.
If the user is satisfied with the terms and conditions of the policy,
the form to purchase that policy will be provided.
41
The user should enter the details like name, age, salary, etc,
appropriate to the terms of the policy.
Later a unique customer code will be provided to the user for his
future use.
AGENT FUNCTIONS:
void agnmen()
The function agnmen() displays the agent menu
It asks the user to enter a choice
The character input ‘O’ stands for old agent
The character input ‘N’ stands for new agent ,’T’ stands for terms
and conditions
getch function is used for the user to make their choice
The getch() reads a single character directly from the keyboard
This function uses a header file conio.h.
Switch-case is used where the switch statement allows a character
variable that is been chosen by a user for equality against a list of
values.
If the character entered by a user is ‘O’, old agent function is called
If user enters ‘N’, the new agent function is called
If the character entered is ‘T’ ,terms and conditions for agent
function is called
If the user inputs ‘B’ ,the control goes back to main menu function
and if input is ‘E’ ,control comes out of the switch–casestatement
If the user enter any of these character the control gets back to
getch() function until user gives a appropriate character input.
goto statement is used to transfer the control back to the
getch() function.
42
void newagn()
The function newagn() displays the new agent form
The new agent form ask the user to enter the new agent details like
name, age, house number, area, city, state, salary and the policies sold
If the name, house number, area, city and state entered is compared
with the null character using library function strcmp() which uses
string.h as its
header file ,and if the comparison is equal to zero i.e if there is no
input from the user the control goes back to gets() function where the
user has to input the appropriate information
If policy sold is greater than 999 and less than 2000,the agent is
categorised under "DIVISIONAL MANAGER CLUB MEMBER"
If policy sold is greater than 1999 and less than 3000,the agent is
categorised under "ZONAL MANAGER CLUB MEMBER"
then the agents unique code is created using fabs() which is a mathematical
Function that returns the absolute value of the given argument.
Then the agent details is displayed on to the screen
At the end of the function agent menu function is called.
Void oldagn()
43
If the flag is 0 ,the agent is not found
The information of the agent is found only when flag is 1
At the end of the execution agent menu function is called
Void tncagn()
The function tncagn() displays the terms and conditions for the agent
The minimum eligibility for the life insurance agency are:
Qualification :12th class passed
Age: 18 years completed
Applicant should have passed the online exam conducted by NSE-IT
Agents license is issued for the 3years in the beginning and renewed thereafter
for another 3years
After the completion of 25 hours of agents training
Business condition for the agency enforced-12 lives with 1lakh sum assured
First premium income should be one lakh
44
After getting all details, we need to generate a unique agent code for each agent for
further accessing.
To achieve this uniqueness, we perform this equation
fabs(100+(20*agnt[i].age)-(80*i))
We use the agent’s age and the applicant number to reduce the ambiguity.
Fabs is function that displays the absolute value of the expression, i.e. , ignores the
decimal part.
Next step is to display all the entered details.
We use a simple Cout statement for displaying the details.
This function enables an existing agent to view his/her details, on providing the
unique code.
We create a variable flag, which indicates whether the system has found the agent or
not.
Using gotoxy statement we get to the specific spot on the screen, and ask the user
to enter the code.
This code is stored in an integer variable pn.
Pn is compared with existing codes using an if statement, and on finding the code
in the database, flag value becomes 1, and the agent details corresponding to the
code are displayed.
If the code is not found ,flag value becomes 0,which in turn calls the Cout statement
that displays to the user that agent of that particular code wasn’t found.
After execution, the control is shifted to the agnmen() function again.
Feedback Form:
Whenever a customer or an user wants to exit from the system, the user will be
transferred to feedback form.
This functions firstly takes details of an user like name, age, salary etc.
45
Once the user fills all his details he will be given with five questions.
Answers to the questions are to be given in 1-7 ratings, i.e. 1(Poor) and 7(Excellent).
Once the answer to all questions are submitted user can exit the system.
46
/* Program to Lic management System */
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<ctype.h>
47
#include<stdio.h>
#include<process.h>
#include<iomanip.h>
#include<math.h>
/* STRUCTURE DEFINITIONS */
char hno[30];
char area[30];
char city[30];
char stat[30];
};
int code;
char nam[80];
int age;
address addagn;
48
float sal; //salary
}agnt[15];
char nam[80];
int age;
address addcust;
int code;
float polamt;
int polterm;
char mod_pay;
}custm[15];
int age;
49
char gndr; //gender
}fbk;
char nam[20];
int minagemat;
int maxagemat;
int maxmatage;
int minpolt;
int maxpolt;
float minsumass;
char maxsumass[10];
char modeall[25];
float acci_ben;
float CI;
int femliv;
char agepro[40];
char nonmed_gen[5];
char nonmed_spe[5];
50
char termrideroptn[4];
char crtcalilnesridr[4];
float sa_pt_patrm1_ag2;
float sa_pt_patrm2_ag1;
float sa_pt_patrm2_ag2;
};
"Yes","Yes",72.00,73.35,35.80,40.00};
"Yes","Yes",65.35,53.45,71.85,61.55};
"No","No",49.15,29.25,49.15,29.25};
51
poldet jeevannd={"JEEVAN ANAND",18,65,75,5,57,100000.00,"No
Limit",
"Yes","Yes","No","Yes",50.95,39.05,155.75,86.25};
"Yes","No","No",108.80,91.30,123.00,112.80};
/* FUNCTION PROTOTYPING */
/* CUSTOMER FUNCTIONS */
52
void tnccus(poldet pol);//display details of policies
/* AGENT FUNCTIONS */
/* MAIN FUNCTION */
void main()
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout<<setprecision(2);
textbackground(BLACK);
53
textcolor(CYAN+BLINK);
clrscr();
delay(1500);
gotoxy(25,20);
puts("LOADING");
delay(2000);
for(int i=0;i<11;i++)
textcolor(CYAN);
textbackground(BLACK);
clrscr();
gotoxy(25,20);
puts("LOADING");
gotoxy(25,22);
for(int j=0;j<i;j++)
cout<<"ÛÛ";
for(int x=10-(i);x>0;x--)
cout<<" ";
54
cout<<" "<<i<<"0%";
if(i%2==0)
delay(500);
else
delay(200);
gotoxy(33,25);
puts("COMPLETE!!");
delay(500);
welcome();
/* WELCOME SCREEN */
void welcome()
clrscr();
for(int x=0;x<80;x++)
gotoxy(x,0);
cout<<"•";
delay(5);
55
}
for(int y=0;y<48;y++)
gotoxy(0,y);
cout<<"•\n";
delay(5);
for(x=79;x>0;x--)
gotoxy(x,49);
cout<<"•";
delay(5);
gotoxy(80,49);
cout<<"•";
for(y;y>0;y--)
gotoxy(80,y);
cout<<"•\n";
delay(5);
56
}
gotoxy(10,10);
puts("*********************** W E L C O M E ***********************
");
gotoxy(18,16);
puts("L . I . C . D A T A B A S E S O F T W A R E");
gotoxy(38,22);
puts(" D E V E L O P E D B Y : ");
gotoxy(38,26);
gotoxy(38,28);
puts(" BCA");
gotoxy(38,30);
gotoxy(38,32);
gotoxy(38,34);
puts(" DELHI-54");
gotoxy(38,40);
getch();
mainmen();
57
}
/* MAIN MENU */
void mainmen()
char a;
clrscr();
cout<<"\n";
for(int x=0;x<80;x++)
delay(5);
cout<<"•";
for(int y=1;y<16;y++)
delay(5);
gotoxy(0,y);
cout<<"•\n";
gotoxy(25,5);
58
cout<<"WELCOME TO LIFE INSURANCE COMPANY";
gotoxy(25,6);
cout<<"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$";
gotoxy(36,9);
cout<<"L.I.C. MENU";
gotoxy(36,12);
cout<<"C=CUSTOMER";
gotoxy(36,14);
cout<<"A=AGENT";
gotoxy(36,16);
cout<<"X=EXIT";
cout<<"\n\n";
for(x=1;x<80;x++)
delay(5);
cout<<"•";
for(y=2;y<19;y++)
delay(5);
gotoxy(80,y);
cout<<"•";
59
}
gotoxy(30,20);
x:a=getch();
switch(a)
case 'c':
case 'C':cusmen();
break;
case 'a':
case 'A':agnmen();
break;
case 'x':
case 'X':feed();
break;
default:goto x;
/* CUSTOMER MENU */
void cusmen()
60
char b;
x:clrscr();
cout<<"\n";
for(int x=0;x<80;x++)
delay(5);
cout<<"•";
for(int y=1;y<16;y++)
delay(5);
gotoxy(0,y);
cout<<"•\n";
gotoxy(36,5);
cout<<"CUSTOMER MENU";
gotoxy(36,6);
cout<<"$$$$$$$$$$$$$";
gotoxy(36,9);
cout<<"O=OLD CUSTOMER";
gotoxy(36,11);
61
cout<<"P=POLICIES";
gotoxy(36,13);
cout<<"B=BACK";
gotoxy(36,15);
cout<<"X=EXIT";
cout<<"\n\n";
for(x=0;x<80;x++)
delay(5);
cout<<"•";
for(y=2;y<18;y++)
gotoxy(80,y);
delay(5);
cout<<"•";
gotoxy(30,19);
y:b=getch();
62
switch(b)
case 'o':
case 'O':oldcus();
break;
case 'p':
case 'P':newpol();
break;
case 'b':
case 'B':mainmen();
break;
case 'x':
case 'X':feed();
break;
default:goto y;
/* NEW POLICY */
void newpol()
char inp;
clrscr();
63
cout<<"\n";
for(int x=0;x<80;x++)
delay(5);
cout<<"•";
for(int y=1;y<17;y++)
delay(5);
gotoxy(0,y);
cout<<"•\n";
gotoxy(30,5);
gotoxy(30,6);
cout<<"$$$$$$$$$$$$$$$$$$$$$$$";
gotoxy(31,9);
gotoxy(31,11);
64
gotoxy(31,13);
gotoxy(31,15);
gotoxy(31,17);
cout<<"\n\n";
for(x=0;x<80;x++)
delay(5);
cout<<"•";
for(y=2;y<19;y++)
delay(5);
gotoxy(80,y);
cout<<"•";
gotoxy(31,21);
cout<<"B=Back";
gotoxy(31,23);
65
cout<<"X=Exit";
gotoxy(31,25);
x:inp=getch();
switch(inp)
case '1':tnccus(endow);
case '2':tnccus(monbak);
case '3':tnccus(jeevkish);
case '4':tnccus(jeevannd);
case '5':tnccus(jeevsurbh);
case 'b':
case 'B':cusmen();
case 'x':
case 'X':exit(0);
default:goto x;
66
}
/* POLICY DETAILS */
char in;
clrscr();
cout<<"\n";
for(int x=0;x<80;x++)
delay(5);
cout<<"•";
for(int y=1;y<32;y++)
delay(5);
gotoxy(0,y);
cout<<"•\n";
67
gotoxy(25,5);
puts(pol.nam);
gotoxy(12,8);
cout<<pol.minagemat<<" / "<<pol.maxagemat;
gotoxy(12,10);
gotoxy(12,12);
gotoxy(12,14);
puts(pol.maxsumass);
gotoxy(12,16);
puts(pol.modeall);
gotoxy(12,18);
gotoxy(12,20);
gotoxy(12,22);
68
gotoxy(12,24);
puts(pol.agepro);
gotoxy(12,26);
puts(pol.nonmed_gen);
gotoxy(12,28);
puts(pol.nonmed_spe);
gotoxy(12,30);
puts(pol.termrideroptn);
gotoxy(12,32);
puts(pol.crtcalilnesridr);
cout<<"\n";
for(x=0;x<80;x++)
delay(5);
cout<<"•";
for(y=2;y<34;y++)
69
{
delay(5);
gotoxy(80,y);
cout<<"•";
gotoxy(12,36);
a:in=getch();
switch(in)
case 'Y':
case 'y':newcus(pol);
case 'n':
case 'N':newpol();
default:goto a;
70
void newcus(poldet pol)
int j;
clrscr();
for(int i=0;i<15;i++)
if(strcmp(custm[i].nam,"\0")==0)
break;
gotoxy(28,3);
puts(pol.nam);
gotoxy(25,6);
gotoxy(25,8);
gotoxy(25,10);
gotoxy(25,12);
gotoxy(29,14);
71
gotoxy(29,16);
gotoxy(29,18);
gotoxy(29,20);
gotoxy(25,22);
if(strcmp(pol.nam,"JEEVAN KISHORE"))
gotoxy(25,24);
gotoxy(25,26);
gotoxy(29,28);
gotoxy(25,30);
a:gotoxy(34,8);
gets(custm[i].nam);
if(strcmp(custm[i].nam,"\0")==0)
goto a;
b:gotoxy(33,10);
72
for(j=0;j<20;j++)
cout<<" ";
gotoxy(33,10);
cin>>custm[i].age;
if(custm[i].age<pol .minagemat||custm[i].age>pol.maxagemat)
gotoxy(20,40);
goto b;
else
gotoxy(20,40);
for(j=0;j<34;j++)
cout<<" ";
c:gotoxy(43,14);
gets(custm[i].addcust.hno);
if(strcmp(custm[i].addcust.hno,"\0")==0)
goto c;
d:gotoxy(38,16);
73
gets(custm[i].addcust.area);
if(strcmp(custm[i].addcust.area,"\0")==0)
goto d;
e:gotoxy(38,18);
gets(custm[i].addcust.city);
if(strcmp(custm[i].addcust.city,"\0")==0)
goto e;
f:gotoxy(39,20);
gets(custm[i].addcust.stat);
if(strcmp(custm[i].nam,"\0")==0)
goto f;
gotoxy(36,22);
g:gotoxy(43,24);
for(j=0;j<20;j++)
cout<<" ";
gotoxy(43,24);
cin>>custm[i].polamt;
if(custm[i].polamt<pol.minsumass)
74
{
gotoxy(20,40);
goto g;
else
gotoxy(20,40);
for(j=0;j<50;j++)
cout<<" ";
gotoxy(45,26);
h:custm[i].mod_pay=getch();
switch(custm[i].mod_pay)
case 'q':
case 'Q':
case 'h':
case 'H':
case 'y':
case 'Y':custm[i].mod_pay=toupper(custm[i].mod_pay);
cout<<custm[i].mod_pay;
getch();
75
break;
default:goto h;
k:custm[i].polterm=0;
gotoxy(41,30);
for(j=0;j<15;j++)
cout<<" ";
gotoxy(41,30);
cin>>custm[i].polterm;
if((custm[i].polterm<pol.minpolt)||(custm[i].polterm>pol.maxpolt))
gotoxy(20,40);
goto k;
else
gotoxy(20,40);
for(j=0;j<34;j++)
cout<<" ";
76
strcpy(custm[i].polbt,pol.nam);//copy the policy name to customer's
details
custm[i].prem=premcalc(custm[i],pol);//calculate premium
clrscr();
gotoxy(30,3);
gotoxy(25,6);
puts(custm[i].nam);
gotoxy(25,8);
gotoxy(25,10);
gotoxy(29,12);
puts(custm[i].addcust.hno);
gotoxy(29,14);
puts(custm[i].addcust.area);
gotoxy(29,16);
77
cout<<"* CITY : ";
puts(custm[i].addcust.city);
gotoxy(29,18);
puts(custm[i].addcust.stat);
gotoxy(25,20);
puts(custm[i].polbt);
gotoxy(25,22);
if(strcmp(pol.nam,"JEEVAN KISHORE"))
gotoxy(25,24);
gotoxy(25,26);
gotoxy(25,28);
switch(custm[i].mod_pay)
case 'Y':cout<<"YEARLY";
break;
break;
case 'Q':cout<<"QUARTERLY";
78
}
gotoxy(25,30);
gotoxy(25,32);
getch();
cusmen();
/* PREMIUM CALCULATION */
float a;
if(custm.age<(pol.minagemat+pol.maxagemat)/2)
if(custm.polterm<=(pol.minpolt+pol.maxpolt)/2)
custm.sa_pt_pa=pol.sa_pt_patrm1_ag1;
if(custm.polterm>(pol.minagemat+pol.maxagemat)/2)
custm.sa_pt_pa=pol.sa_pt_patrm2_ag1;
79
if(custm.age>=(pol.minagemat+pol.maxagemat)/2)
if(custm.polterm<=(pol.minpolt+pol.maxpolt)/2)
custm.sa_pt_pa=pol.sa_pt_patrm1_ag2;
if(custm.polterm>(pol.minpolt+pol.maxpolt)/2)
custm.sa_pt_pa=pol.sa_pt_patrm2_ag2;
if(custm.mod_pay=='h'||custm.mod_pay=='H')
custm.sa_pt_pa*=0.985;
else if(custm.mod_pay=='y'||custm.mod_pay=='Y')
custm.sa_pt_pa*=0.97;
if(custm.polamt>pol.minsumass&&custm.polamt<=(2*pol.minsumas
s))
custm.sa_pt_pa-=1;
if(custm.polamt>(2*pol.minsumass))
custm.sa_pt_pa-=2;
a=(custm.sa_pt_pa)*(custm.polamt)/1000;
return a;
80
}
void oldcus()
int flag=0;
clrscr();
gotoxy(25,6);
int pn;
cin>>pn;
for(int i=0;i<15;i++)
flag=1;
gotoxy(25,10);
puts(custm[i].nam);
gotoxy(25,12);
81
gotoxy(25,14);
gotoxy(29,16);
puts(custm[i].addcust.hno);
gotoxy(29,18);
puts(custm[i].addcust.area);
gotoxy(29,20);
puts(custm[i].addcust.city);
gotoxy(29,22);
puts(custm[i].addcust.stat);
gotoxy(25,24);
puts(custm[i].polbt);
gotoxy(25,26);
gotoxy(25,28);
gotoxy(25,30);
gotoxy(25,32);
82
cout<<"¯ MODE OF PAYMENT : ";
switch(custm[i].mod_pay)
case 'Y':cout<<"YEARLY";
break;
break;
case 'Q':cout<<"QUARTERLY";
gotoxy(25,34);
getch();
cusmen();
gotoxy(25,8);
83
getch();
cusmen();
/* AGENT MENU */
void agnmen()
char b;
x:clrscr();
cout<<"\n";
for(int x=0;x<80;x++)
delay(5);
cout<<"•";
for(int y=1;y<17;y++)
delay(5);
gotoxy(0,y);
cout<<"•\n";
84
gotoxy(36,5);
cout<<"AGENT MENU";
gotoxy(36,6);
cout<<"$$$$$$$$$$";
gotoxy(36,9);
cout<<"O=OLD AGENT";
gotoxy(36,11);
cout<<"N=NEW AGENT";
gotoxy(36,13);
gotoxy(36,15);
cout<<"B=BACK";
gotoxy(36,17);
cout<<"X=EXIT";
cout<<"\n\n";
for(x=0;x<80;x++)
delay(5);
cout<<"•";
for(y=2;y<19;y++)
85
{
delay(5);
gotoxy(80,y);
cout<<"•";
gotoxy(30,21);
y:b=getch();
switch(b)
case 'o':
case 'O':oldagn();
break;
case 'n':
case 'N':newagn();
break;
case 'T':
case 't':tncagn();
goto x;
case 'b':
case 'B':mainmen();
break;
86
case 'X':
case 'x':exit(0);
break;
default:goto y;
void newagn()
int o;
clrscr();
for(int i=0;i<15;i++)
if(strcmp(agnt[i].nam,"\0")==0)
break;
gotoxy(34,3);
gotoxy(25,6);
87
gotoxy(25,8);
gotoxy(25,10);
gotoxy(25,12);
gotoxy(29,14);
gotoxy(29,16);
gotoxy(29,18);
gotoxy(29,20);
gotoxy(25,22);
gotoxy(25,24);
x:gotoxy(34,8);
gets(agnt[i].nam);
if(strcmp(agnt[i].nam,"\0")==0)
goto x;
88
y:gotoxy(33,10);
cin>>agnt[i].age;
if(agnt[i].age<18)
gotoxy(20,40);
gotoxy(33,10);
for(o=0;o<4;o++)
cout<<" ";
goto y;
else
gotoxy(20,40);
for(o=0;o<35;o++)
cout<<" ";
a:gotoxy(43,14);
gets(agnt[i].addagn.hno);
if(strcmp(agnt[i].addagn.hno,"\0")==0)
goto a;
b:gotoxy(38,16);
89
gets(agnt[i].addagn.area);
if(strcmp(agnt[i].addagn.area,"\0")==0)
goto b;
c:gotoxy(38,18);
gets(agnt[i].addagn.city);
if(strcmp(agnt[i].addagn.city,"\0")==0)
goto c;
d:gotoxy(39,20);
gets(agnt[i].addagn.stat);
if(strcmp(agnt[i].addagn.stat,"\0")==0)
goto d;
gotoxy(36,22);
cin>>agnt[i].sal;
gotoxy(43,24);
cin>>agnt[i].polsld;
90
else if((agnt[i].polsld)>999&&(agnt[i].polsld)<2000)
else if((agnt[i].polsld)>1999&&(agnt[i].polsld)<3000)
else if((agnt[i].polsld)>2999)
clrscr();
gotoxy(34,3);
gotoxy(25,6);
puts(agnt[i].nam);
gotoxy(25,8);
gotoxy(25,10);
gotoxy(25,12);
91
gotoxy(29,14);
puts(agnt[i].addagn.hno);
gotoxy(29,16);
puts(agnt[i].addagn.area);
gotoxy(29,18);
puts(agnt[i].addagn.city);
gotoxy(29,20);
puts(agnt[i].addagn.stat);
gotoxy(25,22);
gotoxy(25,24);
puts(agnt[i].categ);
gotoxy(25,26);
getch();
agnmen();
92
/* OLD AGENT'S DETAILS */
void oldagn()
int flag=0;
clrscr();
gotoxy(25,6);
int pn;
cin>>pn;
for(int i=0;i<15;i++)
flag=1;
gotoxy(25,9);
cout<<agnt[i].nam;
gotoxy(25,11);
gotoxy(29,13);
93
puts(agnt[i].addagn.hno);
gotoxy(29,15);
puts(agnt[i].addagn.area);
gotoxy(29,17);
puts(agnt[i].addagn.city);
gotoxy(29,19);
puts(agnt[i].addagn.stat);
gotoxy(25,21);
cout<<agnt[i].polsld;
gotoxy(25,23);
puts(agnt[i].categ);
gotoxy(25,25);
cout<<agnt[i].sal;
getch();
agnmen();
94
if(flag==0)//if agent is not found
gotoxy(25,8);
getch();
agnmen();
void tncagn()
clrscr();
cout<<"\n";
for(int x=0;x<80;x++)
delay(5);
cout<<"•";
95
for(int y=1;y<34;y++)
delay(5);
gotoxy(0,y);
cout<<"•\n";
gotoxy(25,5);
gotoxy(25,6);
cout<<"$$$$$$$$$$$$$$$$$$$$$$$$$$$$";
gotoxy(15,10);
gotoxy(19,12);
gotoxy(19,14);
gotoxy(19,16);
gotoxy(21,18);
cout<<"conducted by NSE-IT";
gotoxy(15,22);
gotoxy(17,24);
96
cout<<"beginning and renewed thereafter for another 3 years";
gotoxy(17,26);
gotoxy(15,30);
gotoxy(19,32);
gotoxy(19,34);
cout<<"\n\n";
for(x=0;x<80;x++)
delay(5);
cout<<"•";
for(y=2;y<36;y++)
delay(5);
gotoxy(80,y);
cout<<"•";
97
getch();
void feed()
clrscr();
gotoxy(34,3);
cout<<"FEEDBACK FORM";
gotoxy(34,4);
cout<<"*************";
gotoxy(6,6);
gotoxy(6,8);
cout<<"AGE : ";
gotoxy(6,10);
gotoxy(6,12);
cout<<"OCCUPATION : ";
gotoxy(6,14);
98
gotoxy(32,16);
cout<<"QUESTIONAIRE FORM";
gotoxy(32,17);
cout<<"*****************";
gotoxy(6,19);
gotoxy(6,21);
gotoxy(6,23);
cout<<"1. LIC performs the service right the first time : ";
gotoxy(6,25);
gotoxy(6,27);
gotoxy(6,29);
gotoxy(6,31);
gotoxy(6,33);
gotoxy(6,35);
99
gotoxy(6,37);
gotoxy(6,39);
gotoxy(6,41);
gotoxy(6,43);
gotoxy(6,45);
gotoxy(12,8);
cin>>fbk.age;
gotoxy(21,10);
b:fbk.gndr=getch();
switch(fbk.gndr)
case 'm':
case 'M':
case 'f':
case 'F':cout<<fbk.gndr;
break;
100
default:goto b;
getch();
c:gotoxy(19,12);
gets(fbk.occp);
if(strcmp(fbk.occp,"\0")==0)
goto c;
gotoxy(23,14);
cin>>fbk.inc;
gotoxy(57,23);
fbk.a[0]=feedval();
gotoxy(49,25);
fbk.a[1]=feedval();
gotoxy(56,27);
fbk.a[2]=feedval();
gotoxy(55,29);
fbk.a[3]=feedval();
101
gotoxy(56,31);
fbk.a[4]=feedval();
gotoxy(66,33);
fbk.a[5]=feedval();
gotoxy(45,35);
fbk.a[6]=feedval();
gotoxy(45,37);
fbk.a[7]=feedval();
gotoxy(47,39);
fbk.a[8]=feedval();
gotoxy(42,41);
fbk.a[9]=feedval();
gotoxy(45,43);
fbk.a[10]=feedval();
gotoxy(42,45);
fbk.a[11]=feedval();
102
gotoxy(36,47);
for(int x=0;x<9;x++)
cout<<str[x];
delay(100);
getch();
exit(0);
char feedval()
char x;
d:x=getch();
if(x>'0'&&x< '8')
cout<<x;
else
goto d;
103
getch();
return x;
104
105
106
107
108
109
110
111
112
113
114
115
116
IMPLEMENTATION
A crucial phase in the system life is the successful implementation of
the new system design implementation simply mean converting a
new system design into operation This involves creating computer
compatible files, training the operation staff and installing hardware
terminals and telecommunication network before the system is up
and running,
117
USER MANUAL
Installation
How to use
Lic project double click on. Lic Menu .exe. How to use:-
CUSTOMER
• If you want to Read terms and conditions than choose the 3rd
option TRANSACTION and then press T key
118
119
System Maintenance
Maintenance is the enigma of system development It holds software
industry captive typing up programming spend for more time in
maintaining program than writing them.
In case of system crash a user may lose all his/her valuable To cope with
this problem backup option is given in this system data' This system
provides the facility of backup and recovery. Only an administrator can
take the backup and can recover all the files. system. To utilize this
facility user must have floppy drive on his or her
120
LIMITATION
This system is developed considering only one Insurance
Company, which means that the agent can maintain the details
of customers of only one company. He can enter the details of
other companies policy, but he will not be able to make a
distinction among the policies of different company. This is the
major limitation of this project. Only one Life Insurance
Company exists. This system is not implemented on-line. As the
system is not on-line, therefore customers cannot take the
reports regarding their policies as and when they require.
121
Conclusion
Existing LIC Database system do not provide facility to select
the particular policy by going through each policy details.
Customers has to be dependent on agent to get details on
particular policy. While taking any particular policy, customers
do not able to get information what will be the minimum
installment to be made and in what mode. Agent are also not
able to check their account any time as per their requirement and
the details of customers who have taken policy from them along
with their policy maturity date. The present system do not
provide the correct medium for the agents to know their
commissions which has been made while selling any particular
policy.
122
Happy Ending
123