Professional Documents
Culture Documents
ON
“ ACCOUNT MANAGEMENT”
SUBMITTED FOR PARTIAL
FULLFILMENT OF
PGDCA
OF
BILASPUR UNIVERSITY
BILASPUR (CG)
SESSION 2019-20
TOPIC
1. Acknowledgement
2. About Project
3. About C++
4. About University
5. Preface
8. File Structure
9. Source Code
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.
Name Signature
About Project:
About C++
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.
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:
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.
INITIAL.DAT
DFD FOR SEARCHING ACCOUNT NUMBER
BANK.DAT TEMP.DAT
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
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
7. It facilitates troubleshooting.
Disadvantages:
3. Reproduction is difficult.
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
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>
int scan;
int ascii;
option a[] = {
"NewAccount",
"ListofAccounts",
"IndAccount",
"DailyTrans",
"MonthlyReport",
"EditAccount",
"Exit"};
option b[] = {
"Modify Account",
"Closeaccount",
"Quit"
};
int i, done;
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;
{
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;
// 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;
}
/* 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