You are on page 1of 29

A PROJECT REPORT

ON
“ ACCOUNT MANAGEMENT”
SUBMITTED FOR PARTIAL
FULLFILMENT OF
PGDCA
OF
BILASPUR UNIVERSITY
BILASPUR (CG)

SESSION 2019-20

UNDER GUIDANCE OF, SUBMITTED BY,


MR. AMIT LAHRE MR. ABHISHEK KSHATRIYA
&
MR. RAMKRISHNA YADAV
CONTENTS

TOPIC

1. Acknowledgement

2. About Project

3. About C++

4. About University

5. Preface

6. About the Course

7. Flowchart / Data Flow Diagram

8. File Structure

9. Source Code

10. Input Form

11. Output Form

12. Bibliography
Acknowledgement

First and foremost, I thank Almighty God for all His blessings
showered on me.

We wish & express our heart full gratitude to the project guide Mr AMIT
LAHRE for the guidance and suggestions throughout the project, without
which I would not have been able to complete this project successfully.

I extend my thanks to all my friends for their moral support and


encouragement. Last but not least I thank my parents and relatives
who inspired us always to do the best.

Name Signature
About Project:

The software developed by us can used in any small scale Banking


office in order to remove the burden of manual working process
which were used in small directory for daily working process for the
creation of new user , modification and deletion which is time
consuming and error prone. So for the removal of all the burdens
from the Banking office their employee wants a computerized system
for the entry process in the Banking office.

About C++

We have chosen C programming for the development of the software


telephone directory because C programming language has many
features ,due to which c language is called the most powerful
language for developing an application software for various purposes.
The file management in C is simple and easy to implements.
C is a programming language developed at AT & T’s Bell
Laboratories of USA in 1972. It was designed and written by a man
named Dennis Ritchie. In the late seventies C began to replace the
more familiar languages of that time like PL/I, ALGOL, etc. No one
pushed C. It wasn’t made the ‘official’ Bell Labs language. Thus,
without any advertisement C’s reputation spread and its pool of users
grew. Ritchie seems to have been rather surprised that so many
programmers preferred C to older languages like FORTRAN or PL/I,
or the newer ones like Pascal and APL. But, that's what happened.
Possibly why C seems so popular is because it is reliable, simple and
easy to use. Moreover, in an industry where newer languages, tools
and technologies emerge and vanish day in and day out, a language
that has survived for more than 3 decades has to be really good.

An opinion that is often heard today is – “C has been already


superceded by languages like C++, C# and Java, so why bother to
learn C today”. I seriously beg to differ with this opinion. There are
several reasons for this:

I believe that nobody can learn C++ or Java directly. This is because
while learning these languages you have things like classes,
objects, inheritance, polymorphism, templates, exception
handling, references, etc. do deal with apart from knowing the
actual language elements. Learning these complicated concepts
when you are not even comfortable with the basic language
elements is like putting the cart before the horse. Hence one
should first learn all the language elements very thoroughly using
C language before migrating to C++, C# or Java. Though this two
step learning process may take more time, but at the end of it you
will definitely find it worth the trouble.
C++, C# or Java make use of a principle called Object Oriented
Programming (OOP) to organize the program. This organizing
principle has lots of advantages to offer. But even while using this
organizing principle you would still need a good hold over the
language elements of C and the basic programming skills.

Though many C++ and Java based programming tools and


frameworks have evolved over the years the importance of C is
still unchallenged because knowingly or unknowingly while using
these frameworks and tools you would be still required to use the
core C language elements—another good reason why one should
learn C before C++, C# or Java.

Major parts of popular operating systems like Windows, UNIX, Linux


is still written in C. This is because even today when it comes to
performance (speed of execution) nothing beats C. Moreover, if
one is to extend the operating system to work with new devices
one needs to write device driver programs. These programs are
exclusively written in C.
Mobile devices like cellular phones and palmtops are becoming
increasingly popular. Also, common consumer devices like
microwave oven, washing machines and digital cameras are
getting smarter by the day. This smartness comes from a
microprocessor, an operating system and a program embedded in
this devices. These programs not only have to run fast but also
have to work in limited amount of memory. No wonder that such
programs are written in C. With these constraints on time and
space, C is the language of choice while building such operating
systems and programs.

You must have seen several professional 3D computer games where


the user navigates some object, like say a spaceship and fires
bullets at the invaders. The essence of all such games is speed.
Needless to say, such games won't become popular if they takes
a long time to move the spaceship or to fire a bullet. To match the
expectations of the player the game has to react fast to the user
inputs. This is where C language scores over other languages.
Many popular gaming frameworks have been built using C
language.

At times one is required to very closely interact with the hardware


devices. Since C provides several language elements that make
this interaction feasible without compromising the performance it
is the preferred choice of the programmer.

I hope that these are very convincing reasons why one should adopt
C as the first and the very important step in your quest for learning
programming languages.

A close analogy between learning English language and learning C language. The
classical method of learning English is to first learn the alphabets used in the language,
then learn to combine these symbols are used in C, then how using them constants,
variables and keywords are constructed, and finally how are these combined to form an
instruction. A group of instructions would be combined later on to form a program. This
is illustrated in the Figure 1.1.

Paragraph
Alphabets Words Sentences
s

Alphabets
Constants
Digits Instruction
Variables Program
Special s
Keywords
sy- mbols

About University:
Towards an Excellence through Equity, Bilaspur University was established in
June, 2012 though it was gazzeted on 03-02-2012. After its establishment, based
on priority, the University has prepared the Road map as follows.

VISION:
 Towards an Excellence through Equity, Access and Quality Education.

MISSION:
 Aspire to translate collective dream of the Community of the region in to
reality.
 Create, disseminate and advance knowledge, through instructional and
Inter disciplinary and collaborative researches.
 Educate and train the Human Resource persons for the development of
the State of Chhattisgarh.
 Advancement of intellectual, academic, cultural and natural resource
development for Socio- economic development of the region.
 Appropriate measures to promote quality education in affiliated colleges.

OBJECTIVES:

 To develop innovative and professional instructional programmers to cater


the needs of students of the State of Chhattisgarh.
 To create an ambience for quality teaching-learning and skill development
and it’s up gradation.
 To support students in developing competency in their respective fields of
study to participate in emerging global economic opportunities.
 To identify the educational, social cultural & industrial needs in the State
and plan to create relevant programmers.
 To further develop infrastructure for continued productivity,
competitiveness, of human resources of the University in creating knowledge
and research programmers in time and space.
 To up keep the Administrative and academic reforms in emerging
educational and research programmers.
 To support teaching, research and Autonomy in the colleges to emerge as
potential of excellence.

Bilaspur University (Vishwavidyalaya) is State University which has been


established by the Gazette noticiaction on 03.02.2012 of Chhattisgarh Act
No 07, 2012, The Chhattisgarh Viswavidyala ( Amendament) Act, 2011 and
came in to its existance in June, 2012.
The jurisdiction of Bilaspur Unviversity is extended to 05 districts namely:-
revenue districts of Bilaspur, Mungeli, Korba, Jangir Champa and Raigarh.
The University is situated on the bank of Arpa river in temporary hospital building
in a village Sendari spread into 62 acres of land. It has proposed for about 300
acres of land in Koni village in the Educational hub, about 10 km. from Bilaspur
city. There are nearly 117 Govt. and private colleges affiliated in the 05 districts
of Chhattisgarh State which together constitute the juridiction of Bilaspur
University. The colleges carry out undergraduate and postgraduate studies in
different streams of Science, Arts, Commerce, Law and Education and Centres
of research.
The University plans to develop strategy for enhancing the range of pedagogic
approaches and the use of technology. As a part of this approach, the University
plans to start classrooms into state of the art ones, enebling teachers to teach
using wide variety of media.
Preface

The human computer interface, commonly called the


“User Interface” is the doorway to an Interactive software application.
The design of user interfaces demands an understanding of human
factors and interface technology with the use of computers. Human
perception, the skilled level and behavioral profile of the user, the
overall tasks that the user must conduct are the factor to be
considered in an interface design. Visually presented in a most
natural way, complex structures and Relationships can be perceived
in less time, in greater number and with fewer errors than in any other
way. A good user interface makes the program not only easy but also
versatile and efficient to operate conversely by the user. The main
purpose of the use of computer’s in the modern times is to save the
time, money, speedup the process of any work in the company or
institute. It also saves large space by storing data in small hard disk
in place of files and books.

The increased use of computers is gradually replacing manual


system due to their error prone and time-consuming behavior.
Database management has evolved from a specialized computer
application to a central Component of a modern computing
environment. Its primary goal is to provide an Environment that is
covenant and using, retrieving and storing database information.
About The Course
Computer has come to stay as the most face of the man.
As on industry it has been making long strides. The young girls
have had challenge opportunities have been thrown open for
them by computer. The expected large number of computer
professional required in the last decade of century, to direct and
control the human life, is about 4 lakhs. This course that we
offered at the University, is a meaningful contribution toward
the enormous manpower that will be required to man almost
every human activity in the present time, setting the pattern of
our further in the 21st century.

The PGDCA course almost the whole computer


application to every discipline. Apart from programming
language like C and COBOL, modern package for database
management, spreadsheets and word processing, this course
has very significantly made us familiar with two separate
operating system platforms a multi-user system and DOS a
single user system. Our well equipped instructors have told us
also about as how the menace of viruses surfaces before the
computer user.

The project work has provide to be most important


source of knowledge to us. It was during this period of project
that we had an opportunity to the development work at the
Flowchart / Data Flow Diagram

Data Flow Diagrams are part of a structured model in the


development of software. Data flow diagrams are graphical technique
that depicts information flow and that transforms that are applied as
data move from input to output.
Basically, the function of data flow diagrams is to show the user a
graphical analysis of a software system. It is kind of like a flowchart,
except Data Flow Diagrams show the flow of data throughout the
system.

A data flow diagram (DFD) is a graphical technique that


depicts information flow and the transforms that are applied
as data moves from input to output. The DFD is also known
as a data flow graph or a bubble chart.

A DFD shows the functional relationship of the values


computed by a system, including input values, output
values, and internal data stores. It’s a graph showing the
flow of data values from their sources in objects through
processes that transform them to their destinations in other
objects. Some authors use a DFD to show control
information, others might not. A DFD can be seen as a
method of organizing data from its raw state.
General Information

What is a Data flow diagram? Data flow diagrams are


diagrams, which show the flow of data from one place to
another. DFDs describe the processes of a system, showing
how these processes link together through data stores and
how the processes relate to the users-the outside world.
They are sent to record the systems analysis as part of the
design documentation. At their lowest level of details, as we
shall see, DFD’s are often included in a programmers
working specifications when the system analysis is
complete and the system is being.

Why data flow diagrams?

This is also true for a graphical description, model. It’s


difficult, if not impossible, to describe a model in words and
still being clear and not complex. This was one of the main
reasons to develop a graphical modeling technique like
Data flow diagrams.

There are a certain number of ways Data flow diagrams


can be represented.

Data flow diagrams usually are made after a Context


Diagram has been made, because the Context diagram
functions as the basis of a Data flow diagram.

It’s important not to forget that Data flow diagrams are not a
model of flow of control or sequence of processing in a
system. Data flow diagrams must be seen as a model, which
show the flow of data through a system.

DFD FOR ADD NEW MEMBER OPENING

OPERATOR ADD NEW MEMBER BANK.DAT

INITIAL.DAT
DFD FOR SEARCHING ACCOUNT NUMBER

ENTER ACC. NO.


OPERATOR OUTPUT

BANK.DAT TEMP.DAT

DFD FOR EDITING THE ACCOUNT OF MEMBER

EDIT MEMBER
OPERATOR DATA INITIAL.DAT

INITIAL.DAT TEMP.DAT
DFD FOR DELETING ACCOUNT OF MEMBER

DELETE
OPERATOR MEMBER

INITIAL.DAT TELE.DAT

Flow Chart

Before solving a problem with the help of a computer, it is


essential to plan the solution in a step-by-step manner.
Such a planning is represented symbolically with the help of
flow chart. It is an important tool of system analysts and
Programmers for tracing the information flow and the logical
sequence in data processing Logic is the essence of a flow
chart.

A flow chart is the symbolic representation of step-by-step


solution of a given problem, and it indicates flow of entire
process, the sequence of the data input, operations,
computations, decisions, results and other relevant
information.
Pertaining to a particular problem, a flow chart helps
us in the complete understanding of the logical structure of
a complicated problem and in documenting the method
used. It would be seen that the flow chart is a very
convenient method of organizing the logical steps and
deciding what, when and how to proceed with various
processes. The logic should be depicted in the flow charts.
Computerization of the data without a flow chart is like
constructing the building without a proper design and
detailed drawings.

Kinds of the Flow Charts


System Flow Chart

The system analyst to describe data flow and operations for


the data processing cycle uses these. A system flow chart
defines the broad processing in the organizations, showing
the origin of the data, filling structure, processing to be
performed, output that is to generate and necessity of the
offline operation.

2. Program Flow Chart (or) Computer Procedure flow chart

The programmers to describe the sequence of operations


and the decision of a particular problem normally use these.
A program flow chart plans the Program structure and also
serves the purpose of documentation for a program, which
is to be retained and used at a later date either by the
original programmer or others.
Advantages:

Apart from, the DFDS the flow charts has been helping the programmer to
develop the programming logic and to serve as the documentation for a
Completed program, it has the following advantages

1. They help for the easy understanding of the logic


of a
process or a procedure

2. It is a better communicating tool than writing in


words.

3. It is easy to find the conditions, which are


responsible
for the actions.

4. It is an important tool for planning and designing


the
new system.

6. It provides an overview of the system and also


demonstrates the relationship between the various
steps.

7. It facilitates troubleshooting.

8. It promotes logical accuracy.

Disadvantages:

1. Communication lines are not always easy to show.

2. The charts are sometimes complicated.

3. Reproduction is difficult.

4. They are hard to modify.


START

GET USER INPUT

YES
Is Choice=1 Add New Data To
File

NO

YES
Is Choice=2 Display All Record
Yes

NO

YES
Search Record
Is Choice=3

NO
YES
Delete Record
Is Choice=4

NO

Is Choice=5
NO

YES

STOP

File Structure
INITIAL.DAT TABLE

In the INITIAL.DAT FILE details of the MEMBERS are stored during


the adding new record in the directory in this file his Name, Address,
Phone are stored.

FIELD FIELD NAME TYPE


1 AccNumber Integer
2 Name Character
3 Address Charadter
4 Balance Long integer

Source Code

#include <iostream.h>
#include <process.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <conio.h>
#include <dos.h>
#include <stdlib.h>
#include <graphics.h>

typedef char option[15];


const int ROW = 10, COL = 10;

int scan;
int ascii;

option a[] = {
"NewAccount",
"ListofAccounts",
"IndAccount",
"DailyTrans",
"MonthlyReport",
"EditAccount",
"Exit"};

option b[] = {
"Modify Account",
"Closeaccount",
"Quit"
};

int i, done;

void normalvideo(int x, int y, char *str);


void reversevideo(int x, int y, char *str);
void box1(int x1, int y1, int x2, int y2);
char menu();
void control_menu();
char e_menu();
void edit_menu();
void help(void);

void line_hor(int, int, int, char);


void line_ver(int, int, int, char);
void box(int, int, int, int, char);

void add_to_ini(int, char t_name[30], char t_address[30], float);


void display_ini(void);
void delete_ini(int);
void update_ini(int, char t_name[30], char t_address[30], float);
void modify_ini(void);
int last_accno_ini(void);
int found_account_ini(int);
char *return_name_ini(int);
char *return_address_ini(int);
float give_balance_ini(int);
void modify_account_ini(int, char t_name[30], char t_address[30]);
int recordno_ini(int);
void display_in(int);

class initial
{
public:
int accno;
char name[30], address[30];
float balance;
}ini;

void new_account(void);
void close_account(void);
void display_account(void);
void transaction(void);
void clear(int, int);
void month_report(void);
void add_to_file(int, int, int, int, char, char t_type[10], float, float, float); // Function to add transaction records
void delete_account(int);
int no_of_days(int, int, int, int, int, int);
float calculate_interest(int, float);
//void display(int);
void box_for_display(int);

class account
{
public:
int accno;
char type[10];
int dd, mm, yy;
char tran;
float interest, amount, balance;
}acc;

void normalvideo(int x, int y, char *str)


{
gotoxy(x, y);
cprintf("%s", str);
}

void reversevideo(int x, int y, char *str)


{
textcolor(5+143);
textbackground(WHITE);
gotoxy(x,y);
cprintf("%s", str);
textcolor(GREEN);
textbackground(BLACK);
}

void box1(int x1, int y1, int x2, int y2)


{
int col, row;
for( col = x1; col < x2; col++)
{
gotoxy(col, y1);
cprintf("%c", 196);
gotoxy(col, y2);
cprintf("%c", 196);
}

for(row = y1; row < y2; row++)


{

{
clrscr();
textcolor(22);
box1(20, 6, 65, 20);
box1(18, 4, 67, 22);
textcolor(5+143);
gotoxy(36, 5);
textbackground(BLUE);
cprintf("ACCOUNTING MANAGEMENT");
textbackground(BLACK);
textcolor(22);
for(i = 1; i < 7; i++)
normalvideo(32, i+10, a[i]);
reversevideo(32, 10, a[0]);
i = done = 0;
_setcursortype(_NOCURSOR);
do
{
int key = getch();
switch (key)
{
case 00:
key = getch();
switch (key)
{
case 72:
normalvideo(32, i+10, a[i]);

case '5':
box1(3, 1, 75, 24);
cout<< "Last balance Rs. " ;

cout<<t_balance;
do
{
clear(5, 10);
valid = 1;
gotoxy(5, 10);
cout<<"Deposit or Withdraw (D/W) : ";
t_tran = getch();
if (t_tran == '0')
return;
t_tran = toupper(t_tran);
}while (t_tran != 'D' && t_tran != 'W');

do
{
clear(5, 19);
clear(5, 23);
gotoxy(5, 23);
cout<<"Enter Transaction by Cash or Cheque ";
valid = 1;
gotoxy(5, 19);
cout<<"Cash/Cheque : ";
gets(t_type);
strupr(t_type);
if (t_type[0] == '0')
return;
if (strcmp(t_type, "CASH") && strcmp(t_type, "CHEQUE"))
{
valid = 0;
gotoxy(5, 23);
cprintf("\7Enter correctly");
getch();
}
}while (!valid);

do
{
clear(5, 21);
clear(5, 23);
gotoxy(5, 23);
cout<<"Enter Amount for Transaction ";
valid = 1;
gotoxy(5, 21);
cout<<"Amount Rs. ";
gets(tm);
t_amt = atof(tm);
t_amount = t_amt;
if (tm[0] == '0')
return;
if ((t_tran == 'W' && t_amount > t_balance) || (t_amount < 1))
{
valid = 0;
gotoxy(5, 23);
cprintf("\7Invalid Data entered");
getch();
}

}
gotoxy(71, 1);
cout<<"<0>=Exit";
gotoxy(3, 3);
textbackground(WHITE);
for (i = 1; i <= 76; i++)
cprintf(" ");
textbackground(BLACK);
textcolor(BLACK+BLINK);
textbackground(WHITE);
gotoxy(30, 3);
cprintf("Close account screen");
textcolor(LIGHTGRAY);
textbackground(BLACK);

getdate(&d);
d1 = d.da_day;
m1 = d.da_mon;
y1 = d.da_year;
gotoxy(5, 6);
cout<<"Date: " ;
cout<<d1;
cout<< "/";
cout<<m1;
cout<<"/";
cout<<y1;

display_in(t_accno);
do
{
clear(5, 15);
gotoxy(5, 15);
cout<<"Close this account <y/n?? ";
ch = getche();
if (ch == '0')
return;
ch = toupper(ch);
}while (ch != 'N' && ch != 'Y');
if (ch == 'N')
return;

// Function calls to delete the existing account no.


delete_ini(t_accno);
delete_account(t_accno);
gotoxy(5, 20);
cout<<"\7Account Deleted";
gotoxy(5, 23);
cout<< "Press any key to continue...";
getch();
}

// Main program logic which control the members and member functions.
void main(void)
{
char pass[20],x;
int i=0;
clrscr();
cout<<"Enter password:";
do
{
x=getch();
pass[i++]=x;
cout<<'*';
}while(i<12 && x!='\r');
pass[i-1]='\0';
if(strcmp(pass,"9301977750")!=0)
{
cout<<"\nwrong password";
getch();
return;
}

/* Requesting autodetect of the graphics drivers */


int gdriver = DETECT, gmode, errorcode;

/* Set your graphics mode where the graphic files are present */
initgraph(&gdriver, &gmode, "");

help();
closegraph();
control_menu();
getch();
Input Form
Output Form
BIBLIOGRAPHY

The following books and manuals provided a lot of help to us in making this project a
reality.
C COMPLETE REFERENCE
HERBERT SCHILDT
HOW TO PROGRAM C
DEITERL & DEITEL

C PROGRAMMING
O’RELLY
SOFTWARE ENGINEERING
R. E. FAIRELY
SOFTWARE ENGINEERING
PRESSMAN
AN INTEGRATED APPROACH TO SOFTWARE
ENGINNERING
PANKAJ JALOTE
NAROSA PUBLISING HOUSE
SYSTEM ANALYSIS AND DESIGN
ELIAS M AWAD
GALGOTIA
C Programming
Yaswant Kanetkar

You might also like