Professional Documents
Culture Documents
ON
Neha Bansal(0701910041)
Evangeline Kharlyngdoh(0701910021)
1
BONAFIDE CERTIFICATE
GS MANDAL’S
Who carried out the project work under my supervision, towards partial
University, Lucknow.
2
CERTIFICATE OF AUTHENTICATION
3
ACKNOWLEDGEMENT
4
INDEX
ii. Objectives.
iii. Importance
iv. H/W and S/W Requirements.
v. System analysis.
vi. System design.
vii. Input design
viii. Output design
ix. Test plan
x. Maintenance
xi. Functions
xii. Introduction to C
xiii. MS access.
xvii. Snapshots
xviii. Conclusion
xix. Coding.
xx. Bibliography.
5
INTRODUCTION :
This System is developed to solve the problem of the Bankers who are unable to
keep record of thousands of customers and their transactions.Easy to create new
account of customer, up to date account informationProvide easily deposit and
withdrawal of money. A little overview of this system is given below:-
• All the data related to the banking transactions can be move simply.
Is it safe:-
• The whole information stored in the database is safe because it is used locally
in particular bank and not spread out over the Internet.
• The whole data is the password protected which prevents unauthorized access
to the database.
Benefits:
• It can avoid crowd inside the bank.
• Much easier to use than the conventional method of banking.
• It is much faster application.
• All information is available just on single click.
6
OBJECTIVES OF THE PROJECT
7
• To provide easily display account on banking and Atm
IMPORTANCE
Importance Of B.M.S.:-
It has a great importance in Banks, which has many
transactions like account opening, account closing,
depositing, withdrawals, etc these can not be managed easily
manually. So one system can be required which can easily
manage the wide activities of managing the various
transactions taking place. We can overcome this problem by
using Banking Management system.
2. Economical
8
3. Quick
4. Accurate
5. Better control
6. Increase efficiency
H/W Configuration:-
MHZ.
9
Windows Environment:-
10
SYSTEM ANALYSIS
Analysis:-
Analysis is the study of problem prior to make some action. In
the specific domain of computer system development,
analysis refers to the study of some business areas
application, usually leading to the specification of new
system. The action that is to be taken later on is
implementation of system.
• Problem definition
11
• Requirement analysis
PROBLEM DESCRIPTION:
REQUIREMENT SPECIFICATION:
• Functional requirements
• Non-Functional requirements
• User requirements
• System requirements
FUNTIONAL REQUIREMENTS:
12
Should allow the usage of different colors in the
form of brushes,shapes,curves.
Feasibility Analysis:-
13
When the present system whether manual or computerized
has a lot of discrepancies which results in performance
degradation and the system is causing big loss of money and
the time then sometimes it is desirable to replace the older
system with a completely new system .
Hardware Survey:-
Operational Feasibility:-
Technical Feasibility:-
14
specifying equipment and software that will successfully
support the required task.
Economic Feasibility:-
SYSTEM DESIGN
Overview:-
1. Logical design
2. Physical design
15
& produces the program specification, physical file or
database definition with the help of this blue print, e.g.
producing programs, software, and files and working system.
Design Goals:-
Input Design:-
16
Input design specifies how data are
accepted
for processing. This involves:-
Output Design:-
Control Design:-
17
Database Design:-
INPUT DESIGN
to take.
Inaccurate input data are the most common use of error in data
18
The goals of designing input data are to make a data entry as easy
The format in which data fields are entered .The data may be of
OUTPUT DESIGN
generated by the system. Output is the main reason for developing the
system and the basis on which they will evaluate the usefulness of the
application.
19
The output design is specified on layout forms, sheets that
20
Obviously, both these operations would be tedious. At
FUNCTION
21
It has a great importance in Banks, which has many
transactions like account opening, account closing,
depositing, withdrawals, etc these can not be managed easily
manually. So one system can be required which can easily
manage the wide activities of managing the various
transactions taking place.
22
5. PRINT REPORT:After a customer’s transaction, the
bank prints out the report on the balance of the
customer’s account .
INTRODUCTION TO C
23
widely used but their accessibility is much more restricted. Variables
used inside functions are usually ‘local’ to the function; they have no
linkage. Although this book avoids the use of complicated terms like
those where it can, sometimes there isn't a plainer way of saying
things. Linkage is a term that you are going to become familiar with
later. The only external linkage that we will see for a while will be when
we are using functions.
#include <stdio.h>
/*
* Tell the compiler that we intend
* to use a function called show_message.
* It has no arguments and returns no value
* This is the "declaration".
*
*/
void show_message(void);
/*
24
* Another function, but this includes the body of
* the function. This is a "definition".
*/
main(){
int count;
count = 0;
while(count < 10){
show_message();
count = count + 1;
}
exit(0);
}
/*
* The body of the simple function.
* This is now a "definition".
*/
void show_message(void){
printf("hello\n");
MICROSOFT ACCESS
25
Being a desktop database, access is designed to be used on
a desktop computer. One can place an access database file
on a network file server and share the database with other
users on the network. It is not, however a true client/server
database, b’ coz the access database is a file stored on a
hard disk not a running application.
The fact that access is not a client/server database might
seem like a disadvantage, but it really isn’t. When it is used in
the proper environment, it is very easy to administer.
26
3. Access has a limit of 255 total users.
DATABASE STRUCTURE
27
1. PASS
1. ACCOUNT CREATION
2. DEPOSITION
3. WITHDRAWAL
4. ACCOUNT CLOSING
5. ACCOUNT UPDATION
MODULE DESCRIPTION
28
MODULE DESCRIPTION
29
ER DIAGRAM:
The entity relationship(ER) model is a high level data model .It is
Withdraw account.
Modifying account.
Closing account.
30
ER DIAGRAM
Bank
New
Form
Verify DB
31
E-R diagram for withdraw ”ACCOUNT”
User
Withdraw
Deposit
Withdraw
Bank Bank
DB
Verify
DB
No
Amount Deposited
32
E-R diagram for modifying “ACCOUNT”
Modify Bank
User
Verify
Account
Modified
Edit the Details
Form Incorrect
DB
33
E-R diagram for closing an“ACCOUNT”
User
Close
Bank
Account
closed.
DB
34
SNAPSHOTS
35
36
37
38
39
TEST PLAN
Definition of testing:-
Among the rules that can aid in program testing are the
following:-
40
1. Make the test plan section of the program design: -
Testing should be one of the factors in problem
definition, program design and coding stages.
41
White-Box Testing:-
Black-Box Testing:-
42
2. Interface error.
Unit Testing:-
43
categories discussed earlier. Each test case should be
coupled with a set of expected results.
Integration testing:-
44
2. Bottom up integration:-
45
Maintenance
This stage is the updating and connecting of the program to
account for changing conditions or field experience. Proper
testing and documentation should significantly reduces the
frequently and extent of the required maintenance. I can now
appreciate why they are so critical:-
1. Documentation: -
We provide a technical documentation of a program because
many other programmers will be working with and
maintaining that programmer its life span.
4. Structured code: -
The must common maintenance operation. Operation is
tracking down bugs that went unnoticed during the testing
phase. A program implemented as a series of single entry
single. Exit blocks will facilitate debugging.
46
CONCLUSION
SUBMITTED BY:-
Neha Bansal(0701910043)
Evangeline Kharlyngdoh(0701910021)
(M.I.T Bulandsahara)
47
/*--------------------------------------------------------------
--------
THIS IS THE PROGRAME FOR MAINTAINING
THE DATA BASE OF
CUSTOMERS ACCOUNTS DETAILS IN A
BANK
------------------------------------------------------------------
-----*/
#include <stdio.h>
#include <conio.h>
#include<string.h>
#include<dos.h>
/*------------------- VARIABE
DECLARATIONS-------------------------*/
struct customer //for holding customer
information
{
int dd,mm,yy;
char
cus_ac_no[15],cus_name[25],cus_add[45],cus_
ph_no[17];
double cus_bal;
float cus_intrst;
}p1;
FILE *fp,*ft;
48
int recsize;
char choice,any,ch,eno[23];
double dep,withdraw;
double a,n;
struct date d;
/*-----------------------FUNCTION
DEFINATIONS---------------------*/
void acc_info(cust *p);
void add();// to add new account
void list();
void transac();//to make
transactions(deposit/withdrawal)
void del(); // to delete a perticular account
void report(); // to print report on customer
balance
float calculate_interest(cust *p); //To
calculate intrest
int no_of_days(int d1, int m1, int y1, int d2,
int m2, int y2);
void calbig();
void intro();
void calwin(); // these 4
functions
void load();
void calbox(); // for creating
appearence
void box(int a, int b, int c, int d); //
appearence effects
49
/
*----------------------------------------------------------------
--------*/
void main()
{
int k ;
char pass[10] = {"bank"}; // Password of the
Program.
char p[10]; // Variable for the
Password.
char ps;
char choice;
int i = 0, c = 45,d1,m1,y1;
textcolor(GREEN);
clrscr();
load();
intro();
getch();
50
textcolor(CYAN + BLINK);
gotoxy(31,4); cprintf("W O R L D B A N K");
box(16,8,65,22); textcolor(CYAN + BLINK);
gotoxy(30,9);cprintf(" W E L C O M E ");
box(16,11,65,13); textcolor(CYAN);
gotoxy(38,12); cprintf("LOGIN");
textcolor(9);
gotoxy(28,16); cprintf("ENTER PASSWORD :
");
textcolor(RED);
_setcursortype(_SOLIDCURSOR); // To Show
Solid cursor.
while(i <= 9 || ps !='\r')
{
ps = getche();
gotoxy(c,16);
cprintf("*");
if (ps == '\r')
break;
else
{
p[i] = ps;
c++;
i++;
}
if (i > 12) break;
}
p[i] = '\0';
51
_setcursortype(_NOCURSOR); // To disable
the cursor.
if(strcmp(p,pass) == 0)
{
gotoxy(28,18);
textcolor(YELLOW + BLINK);
cprintf("YOU ARE SUCCESSFULY
LOGIN... ");
delay(1000);
}
else
{
gotoxy(27,18);
cprintf("SORRY! ACCESS DENIED.....
");
gotoxy(27,20);
cprintf("LET'S TRY AGAIN [Y]/[N] : ");
choice = getche();
if (choice == 'Y'|| choice == 'y'||choice ==
'\r')
goto password;
else
exit(0);
}
} //end of pass word block
fp = fopen("bank.txt","rb+");
if (fp == NULL)
52
{
fp = fopen("bank.txt","wb+");
if (fp==NULL)
{
puts("cannot create a file ");
exit(1);
}
}
while(1)
{
_setcursortype(_SOLIDCURSOR);
calwin(); textbackground(BLACK);
clrscr(); //yellow
calwin(); textbackground(LIGHTGRAY);
clrscr();
window(19,7,64,39);
delay(300); textbackground(BLACK);
textcolor(BROWN); clrscr();
window(18,6,62,37);//blue window
textbackground(LIGHTBLUE);
textcolor(GREEN); clrscr(); delay(100);
gotoxy(12,2);
cprintf("================== \n");
highvideo(); textcolor(WHITE+BLINK);
gotoxy(11,3); cprintf(" W O R L D B A N
K\n");
textcolor(GREEN);
53
gotoxy(12,4);
cprintf("==================\n");
gotoxy(4,6); cprintf("M A I N - M E N U
\n");
gotoxy(4,7);
cprintf("#################");
getdate(&d);
d1 = d.da_day ;
m1 = d.da_mon ;
y1 = d.da_year ;
gotoxy(34,6); cprintf("%d-%d-
%d",d1,m1,y1);
gotoxy(4,9); cprintf("A-> Adding a new
Account\n");
gotoxy(4,12); cprintf("L-> List all
Accounts\n");
gotoxy(4,15); cprintf("T-> Transaction
[Deposit/Withdraw]\n");
gotoxy(4,18); cprintf("D-> close any
account \n");
gotoxy(4,21); cprintf("F-> Find an
Account\n");
gotoxy(4,24); cprintf("R-> Reports \n");
gotoxy(4,27); cprintf("E-> Exit \n ");
gotoxy(4,29); cprintf("Enter your choice
[A,L,T,D,F,R,E] :");
fflush(stdin); ch = getchar();
switch(toupper(ch))
54
{
case 'A' :
calwin();
textbackground(BLUE); textcolor(BLACK);
clrscr();
add();
break;
/*---------------------------------------------------------------
*/
case 'L':
calwin();delay(100);
textbackground(LIGHTCYAN);
textcolor(BLACK); clrscr();
list();
break;
/*--------------------------------------------------------------
*/
case 'T':
calwin();
textbackground(WHITE); textcolor(BLACK);
clrscr();
transac();
break;
/*----------------------------------------------------------*/
case 'D' :
calwin();
del();
break;
55
/*-------------------------------------------------------------
-*/
case 'F':
_setcursortype(_NOCURSOR);
k=valid();
if(k==2)
{
rewind(fp);
while(fread(&p1,sizeof(p1),1,fp)==1)
{
if(strcmp(p1.cus_ac_no,eno)==0)
{
acc_info(&p1);
}
}
}
else
{
calbox(); highvideo();
textcolor(WHITE+BLINK);
gotoxy(15,12); cprintf(" THIS IS INVALD
NUMBER.");
gotoxy(18,14); cprintf(" TRY AGAIN");
getch();
}
break;
/*-------------------------------------------------------------
-*/
case 'R':
56
calbig();
gotoxy(4,12);
cprintf("=======================
======================");
gotoxy(14,14);cprintf("REPORT OF WORLD
BANK CUSTOMERS");
gotoxy(4,16);
cprintf("=======================
======================");
gotoxy(4,21); cprintf(" Display customers
account to view details :");
gotoxy(5,23);cprintf("digit :");
gotoxy(13,23);scanf("%lf",&n);
report(n);
break;
/*------------------------------------------------------------
*/
case 'E':
intro();
highvideo(); textcolor(LIGHTGRAY+BLINK);
gotoxy(24,5); cprintf("THANK YOU FOR
USING THIS SOFTWARE");
highvideo(); textcolor(GREEN);
getch();
fclose(fp);
exit(1);
break;
57
/*-------------------------------------------------------------
-*/
default :
_setcursortype(_NOCURSOR);
window(23,43,57,49);
textbackground(BLACK); clrscr();
window(22,42,56,48);
textbackground(BLUE);
clrscr();highvideo(); textcolor(WHITE+BLINK);
gotoxy(5,3); cprintf(" SORRY WRONG
CHOICE....");
gotoxy(5,5); cprintf(" PRESS ANY KEY TO
CONTINUE....");
getch();
calwin(); clrscr();
break;
}//end of switch
}//end of while
} //end of void main
/
*----------------------------------------------------------------
-*/
void calwin() // Painting of whole screen
{
window(1,1,80,50); clrscr();
}
58
/
*----------------------------------------------------------------
-*/
while(fread(&p1,sizeof(p1),1,fp)==1)
{
if(strcmp(p1.cus_ac_no,eno)==0)
{
k=2;
break;
}
}
return(k);
}
/*--------------------------------------------------------------
---------*/
void acc_info(cust *p)//Printing of an Account
Details
59
{
calbox();
_setcursortype(_NOCURSOR);
gotoxy(8,2);
cprintf("=======================
=====================\n");
gotoxy(8,3); cprintf("......Customer's
Information .......");
gotoxy(8,4);
cprintf("=======================
=====================\n");
gotoxy(7,7); cprintf("|-> Customer Account
number is:- %s",p->cus_ac_no);
gotoxy(7,10); cprintf("|-> Customer Name
is:-%s",p->cus_name);
gotoxy(7,13); cprintf("|-> Customer Address
is:- %s",p->cus_add);
gotoxy(7,16); cprintf("|->Customer Phone
number is:- %s",p->cus_ph_no);
p->cus_bal+=calculate_interest(p);
gotoxy(7,19); cprintf("|-> Customer Balence
is :- %.3lf Rs",p->cus_bal);
gotoxy(7,22); cprintf("|->Account opened on
:- %d-%d-%d ",p->dd,p->mm,p->yy);
highvideo(); textcolor(WHITE+BLINK);
gotoxy(7,24); cprintf("<-->Press any key to
continue");
getch();
60
}
/
*----------------------------------------------------------------
----------*/
void add()//Addition of a new Account
{
int k;
clrscr();
any='y';
do{
k=valid();
if(k==2)
{
calbox(); highvideo();
textcolor(WHITE+BLINK);
_setcursortype(_NOCURSOR);
gotoxy(12,12); cprintf(" This Account
number already exist ");
gotoxy(19,14); cprintf(" Try again ");
getch();
break;
}
calbox( );
strcpy(p1.cus_ac_no,eno);
gotoxy(5,5); cprintf(" Enter customer
name : ");
fflush(stdin); gets(p1.cus_name);
gotoxy(5,9); cprintf(" Enter customer
address : ");
61
fflush(stdin); gets(p1.cus_add);
gotoxy(5,14); cprintf(" Enter customer
phone number :");
fflush(stdin); gets(p1.cus_ph_no);
gotoxy(5,18); cprintf(" Enter the
amount you want deposit :");
scanf("%lf",&p1.cus_bal);
gotoxy(5,19); cprintf("
============================
===== :");
getdate(&d);
p1.dd = d.da_day ;
p1.mm = d.da_mon ;
p1.yy = d.da_year ;
fseek(fp,0,SEEK_END);
fwrite(&p1,sizeof(p1),1,fp);
gotoxy(5,22); cprintf("Add another account
(y/n) : ");
fflush(stdin); any = getchar();
}while(tolower(any)=='y');//end of do
while
// getch();
}
/*----------------------------------------------------------*/
void list()//Printing all Accounts Details
{
clrscr();
rewind(fp);
while(fread(&p1,sizeof(p1),1,fp)==1)
62
{
acc_info(&p1);
}
}
/*-----------------------------------------------------------*/
void transac()//Updating an Account
{
int k,p,t,r;
clrscr();
k=valid();
rewind(fp);
if(k!=2)
{
_setcursortype(_NOCURSOR);
calbox(); highvideo();
textcolor(WHITE+BLINK);
gotoxy(12,12); cprintf(" This is not a
valid number ");
gotoxy(19,14); cprintf(" Try again");
getch();
}
else
{
while(fread(&p1,sizeof(p1),1,fp)==1)
{
if(strcmp(p1.cus_ac_no,eno)==0)
{
calbox();
63
gotoxy(11,4); cprintf(" What do you want
to do : ");
gotoxy(5,7); cprintf("1->.Deposit");
gotoxy(5,10); cprintf("2->.Withdraw");
gotoxy(5,13); cprintf("3->Exit");
gotoxy(5,17); cprintf("Enter your
choice :");
fflush(stdin);
choice=getchar();
switch(choice)
{
/*-----------------------------------------------------
*/
case '1':
calbox();
gotoxy(5,5); cprintf("Enter the money
you want to Deposit :");
gotoxy(8,7);cprintf("Rs :");
scanf("%lf",&dep);
p1.cus_bal+=dep;
acc_info(&p1);
recsize = sizeof(p1);
fseek(fp,-recsize,SEEK_CUR);
fwrite(&p1,sizeof(p1),1,fp);
getch();
break;
/*----------------------------------------------------
*/
case '2':
64
calbox();
gotoxy(10,12); cprintf("Enter the
money you want to Withdraw : ");
gotoxy(12,14);cprintf("Rs :");
gotoxy(17,14);scanf("%lf",&withdraw);
if(p1.cus_bal<withdraw)
{
_setcursortype(_NOCURSOR);
calbox(); highvideo();
textcolor(WHITE+BLINK);
gotoxy(7,12);cprintf("YOU DONT'VE THIS
MUCH MONEY IN YOUR ACCOUNT");
gotoxy(19,14); cprintf("TRY AGAIN");
getch();
}
else
{
p1.cus_bal-=withdraw;
recsize = sizeof(p1);
fseek(fp,-recsize,SEEK_CUR);
fwrite(&p1,sizeof(p1),1,fp);
acc_info(&p1);
}
break;
/*--------------------------------------------------------*/
case '3':
break;
/*--------------------------------------------------------*/
65
default:
_setcursortype(_NOCURSOR);
window(23,43,57,49);
textbackground(BLACK); clrscr();
window(22,42,56,48);
textbackground(BLUE);
clrscr();highvideo(); textcolor(WHITE+BLINK);
gotoxy(5,3); cprintf(" SORRY WRONG
CHOICE....");
gotoxy(5,5); cprintf(" PRESS ANY KEY TO
CONTINUE....");
getch();
calwin(); clrscr();
break;
/*--------------------------------------------------------------
-*/
} //end of switch
}// end of inner if
}//end of while
}//end of outer else
}//end of Transaction function
/*----------------------------------------------------------*/
void del() //Deletion of an Account
{
int k;
clrscr(); calbox();
k=valid();
_setcursortype(_NOCURSOR);
if(k==2)
66
{
calbox(); highvideo();
textcolor(WHITE+BLINK);
gotoxy(16,12); cprintf(" ARE YOU SURE
");
gotoxy(7,14); cprintf(" YOU WANT TO
CLOSE THIS ACCOUNT (Y/N):\n");
if(toupper(getchar())=='Y')
{
ft = fopen("temp.dat","wb+");
rewind(fp);
while(fread(&p1,sizeof(p1),1,fp) == 1)
{
if(strcmp(p1.cus_ac_no,eno)!=0)
{
fwrite(&p1,sizeof(p1),1,ft);
}
}
fclose(fp); fclose(ft);
remove("bank.txt");
rename("temp.dat","bank.txt");
fp = fopen("bank.txt","rb+");
} //end of inner if
} //end of outer if
else
{
calbox(); highvideo();
textcolor(WHITE+BLINK);
67
gotoxy(12,12); cprintf(" THIS IS NOT A
VALID NUMBER ");
gotoxy(19,14); cprintf(" TRY AGAIN");
getch();
}
}
/*--------------------------------------------------------------
-------*/
void report(double k)
{
int count=1,i=0,temp;
calbig();
rewind(fp);
_setcursortype(_NOCURSOR);
factor_10: {
if(count%10==0)
{
temp=count;
rewind(fp); count=1;
while(fread(&p1,sizeof(p1),1,fp) == 1)
{
count++;
if(count<temp) continue;
else break;
}
}
68
while(fread(&p1,sizeof(p1),1,fp)==1)
{
if(p1.cus_bal>=k)
{
gotoxy(4,13);
cprintf("=======================
======================");
gotoxy(6,15); cprintf("Account no");
gotoxy(23,15); cprintf("Name");
gotoxy(40,15); cprintf("Balence");
gotoxy(4,17);
cprintf("=======================
======================");
gotoxy(6,19+i); cprintf(" %s
",p1.cus_ac_no);
gotoxy(23,19+i); cprintf(" %s
",p1.cus_name);
p1.cus_bal+= calculate_interest(&p1);
gotoxy(40,19+i); cprintf("
%.3lf",p1.cus_bal);
count++;
i=i+2;
if(count%10==0)
{
_setcursortype(_NOCURSOR);
i=0;
69
gotoxy(4,37);
cprintf("-----------------------------------------------------"
);
highvideo(); textcolor(WHITE+BLINK);
gotoxy(7,38); cprintf(" <->Press any
key to continue ");
getch(); calbig();
goto factor_10;
}
}// end of inner if
} //end of while
} //end of factor_10 block
gotoxy(4,11);cprintf("The details of
customers account are :",k,count-1);
getch();
}
/*--------------------------------------------------------------
-------*/
void calbox() //creat small window
{
calwin();
textbackground(LIGHTGRAY);clrscr();
//black window
window(9,9,62,35); textbackground(BLACK);
textcolor(BROWN); clrscr();
//blue window
window(8,8,60,33);delay(150);
70
textbackground(LIGHTBLUE);
textcolor(GREEN); clrscr();
box(2,2,52,25);
}
/*--------------------------------------------------------------
--------*/
void calbig() //creat huge window
{
int count=0;
window(1,1,80,50);
textbackground(LIGHTCYAN);clrscr();
window(5,5,73,45);
textbackground(BLACK);clrscr();
window(3,3,70,42);
textbackground(BLUE);textcolor(GREEN);
clrscr();
box(3,2,66,37);
rewind(fp);
while(fread(&p1,sizeof(p1),1,fp)==1)
count++;
gotoxy(15,3); cprintf(" REPORT OF WORLD
BANK CUSTOMERS");
gotoxy(14,4);
cprintf("#######################
###########");
gotoxy(5,7); cprintf("Total No Of Acconts
Are :- %d",count);
gotoxy(5,8);
cprintf("---------------------------------");
71
}
/*--------------------------------------------------------*/
void intro()
{
_setcursortype(_NOCURSOR);
calwin();
textbackground(BLACK);
clrscr();
box(15,8,69,30); //calbox();
highvideo(); textcolor(CYAN);
gotoxy(25,11); cprintf("\xde PROJECT ON
BANKING AUTOMATION \xde");
textcolor(GREEN);
box(15,8,69,13);
highvideo(); textcolor(CYAN);
gotoxy(20,16);cprintf("Created By : ");
gotoxy(20,18);cprintf(" NEHA and EVA ");
gotoxy(20,19);cprintf(" B.tech CSE");
gotoxy(20,20);cprintf(" M.I.T. Bulandshahr
");
/*
gotoxy(30,19);cprintf(" ");
gotoxy(30,21);cprintf("\xde B.tech CSE
\xde");
gotoxy(30,23);cprintf("\xde M.I.T
\xde");
72
gotoxy(30,25);cprintf("\xde Bulandshahr
\xde");
gotoxy(30,27);cprintf("\xde E-
mail:eve.essence@gmail.com\xde");
textcolor(WHITE+BLINK);
gotoxy(30,19); cprintf("\xde Neeraj Sachdeva
\xde");
gotoxy(30,32);cprintf("<-> Press any key to
continue"); */
}
/*-----------------------------------------------------------*/
void box(int a, int b, int c, int d) //to
generarate box like finishing
{
int i,j ;
for( i = a; i < c; i++)
{
gotoxy(i,b); printf("\xcd");
gotoxy(i,d); printf("\xcd");
}
for( j = b; j < d; j++)
{
gotoxy(a,j); printf("\xba");
gotoxy(c,j); printf("\xba");
}
gotoxy(a,b); printf("\xc9");
gotoxy(c,b); printf("\xbb");
gotoxy(a,d); printf("\xc8");
gotoxy(c,d); printf("\xbc");
73
}
/
*----------------------------------------------------------------
------*/
void load() // For creating loading effect
{
int a=5,b=19,c=78,d=21,i,j,k;
calwin();
textbackground(BLACK);
clrscr();
gotoxy(38,17);
cprintf("Loading....");
box(a,b,c,d);
_setcursortype(_NOCURSOR);
textcolor(BLUE);
for(i=1;i<(c-5);i++)
{
gotoxy(a+i,b+1);
delay(60);
cprintf("\xdd");
}
for(i=1;i<(c-5);i++)
{
gotoxy(a+i,b+1);
delay(60);
cprintf("\xdb");
}
_setcursortype(_NOCURSOR);
textcolor(GREEN);
74
}
/
*----------------------------------------------------------------
----*/
int no_of_days(int d1, int m1, int y1, int d2, int
m2, int y2)
{
static int months[] =
{31,28,31,30,31,30,31,31,30,31,30,31} ;
int days = 0 ;
while (d1 != d2 || m1 != m2 || y1 != y2)
{
days++ ;
d1++ ;
if (d1 > months[m1-1])
{
d1 = 1 ;
m1++ ;
}
if (m1 > 12)
{
m1 = 1 ;
y1++ ;
}
}
return days ;
}
/*-------------THIS FUNCTION CALCULATES
INTEREST------------------*/
75
float calculate_interest(cust *p)
{
int d1, m1, y1, d2, m2, y2, months=0, days
;
d1 = p->dd ;
m1 = p->mm ;
y1 = p->yy ;
getdate(&d);
d2 = d.da_day ;
m2 = d.da_mon ;
y2 = d.da_year ;
p->cus_intrst=0.0 ;
if ((y2<y1) || (y2==y1 && m2<m1) ||
(y2==y1 && m2==m1&& d2<d1))
return p->cus_intrst;
days = no_of_days(d1,m1,y1,d2,m2,y2) ;
/*---------------------------THE END
-----------------------------------*/
76
BIBLIOGRAPHY
77
5. Database management system: by korth
78
i