Jyoti 3

Embed Size (px)

Citation preview

  • 7/27/2019 Jyoti 3

    1/50

    COMPANY PROFILE

    I have developed the project "CUSTOMER ACCOUNTING SYSTEMforMADAAN TRADERS is a wholesale firm, which deals in purchasing

    and selling of cloths. They purchase cloths from the producers and sell

    it to the dealers who further resale it. The products of A.S.Traders are of

    high & export quality. The business of the firm is very sound.

    This firm is situated near Dev Samaj College, Congress Bhawan Road,

    Ambala City. The firm has good reputation in the market. The owner of

    the firm is Mr. RAJ KUMAR who has good relation with the persons

    inside and outside the firm. They are specially dealing in suiting and

    shirting. The firm was established in 1985.

    The purpose of the firm is to satisfy the customers and earn good profit.

    The firm has dedicated staff. The number of persons working in the firm

    are about 20. The employees are well experienced and trained. They

    have full knowledge about their work.

    The main fixed assets of company are building, vehicle etc. The firms

    have computers for billing and accounting purpose. The firm is partially

    preparing the financial accounts on computers. The firms have bank

    accounts in various banks.

    The accounting system of the firm is very important because the firm

    have to keep the record of every transaction. The firm prepares its

    accounts using double entry system by manual method .The firm keeps

    different books for keeping the records of business transactions and for

    balances of different accounts.

    1

  • 7/27/2019 Jyoti 3

    2/50

    INTRODUCTION TO PROJECT

    The project titled "CUSTOMER ACCOUNTING SYSTEM" isdeveloped for MADAAN TRADERS .The firm is keeping itsfinancial records using the traditional method of cash book,day book and ledger. On computer, the firm is maintaining itsaccounts for tallying purpose. I have tried to fully computerizethe accounting system so that the problems arise in preparingthe accounts manually will be removed, when the software isoperated upon. All the accounts reports are timely generatedwithout having any error and in a faster manner. Data can bekept for future purpose and can be accessed wheneverneeded by preparing the accounts on computer.

    It is the first and the foremost need for any system to firstlyunderstand the existing system. This may include a thoroughstudy and analysis of the system so as to what are its basicneeds, what does it do, how is it helpful to the firm, what is its

    priority and most importantly how it can help the firm to grow.Here we are analyzing a very important field of business i.e.CUSTOMER ACCOUNTING SYSTEM. Any mistakes inpreparing the accounts may lead to serious problem for thebusiness. A.S.Traders is keeping its records of transactions invarious books. In other words, the firm is keeping its accountsmanually.

    The firm prepares its accounts by double entry system, which

    follows a procedure. It means, the firm records its transactionsin separate books in a particular sequence. First of all, the firmrecords its transactions in Journal and then posted to therelated account, which is called Ledger. From the Ledgerbalances, the next statement i.e. Trial Balance is prepared,which is the proof of arithmetic accuracy of accounts. After that

    2

  • 7/27/2019 Jyoti 3

    3/50

    all the direct and indirect expenses are recorded in Tradingand Profit and loss account, which is used to calculate the netprofit or loss of the firm. After that, most important statement,Balance Sheet is prepared, in which all the assets, liabilities

    and capital of the firm is recorded, which shows the financialposition of the firm. In Balance Sheet, all the liabilities andcapital is always equal to assets.

    Assets=Liabilities+Capital

    In this way, this firm follows a very lengthy process forrecording the business transactions. Sometimes, a singlemistake effect all the accounts or Financial AccountingSystem.I have tried to computerize the accounting system, so thatproblems, which arise in preparing the accounts manually, canbe removed. It will reduce the paper work all data can bestored in small floppy disk.

    3

  • 7/27/2019 Jyoti 3

    4/50

    LIMITATIONS OF EXISTING SYSTEM

    The manual Customer Accounting System has the followingdrawbacks: -

    1. EFFECT OF CLIMATE: - Files may get effected byclimate may get wet and data may be lost.

    2. FADING AWAY OFF DATA: - It is the normal tendencyof ink to fade away with time, which may cause difficultyin reading after a year or so.

    3. STORAGE: - In this system, many books are prepared,so it needs big racks and huge storage capacity to storethe records of all the years in the registers and files.

    4. CALCULATION MISTAKES :-In this system, all theaccounts are prepared manually. Sometimes there canbe chances of calculations mistakes. In other words,manual accounting system increases the chances oferrors, which can be very dangerous for business.

    5. TIME CONSUMING: - The current method is time

    consuming as all the transactions are firstly recorded injournal, then posted in ledger accounts and otherstatements are prepared. It involves a lengthy process,which is very time consuming.

    6. DIFFICULTY IN RETRIEVING DATA :-In manualsystem, it is very difficult to keep all old records.Sometimes, if old records are needed, it is very difficult toretrieve those records, because we have to search all thefiles. So, it is very difficult to retrieve data in manual

    system.7. MORE CHANCES OF FAULT: - I n manual system, no

    cross checking is done. Without crosschecking, accountsare not said to be fully accurate. So, sometimes there aremore chances of fault.

    4

  • 7/27/2019 Jyoti 3

    5/50

    8. DIFFICULT TO TRANSFER: - These days, we need toprovide data to many outside parties like government,banks etc., which is not possible in current manualsystem.

    Because of these limitations, we cannot say manualfinancial accounting system is a good system. Theselimitations can be removed by making the system fullycomputerized.

    5

  • 7/27/2019 Jyoti 3

    6/50

    PROPOSED SYSTEM

    In our proposed system, we are aiming at modernization bybringing the system to a whole new level. In proposedsystem, we are manufacturing a program in which we need toenter the primary data i.e. the very first necessary information needed by the computer to identify the data.thisprogram is developed in C Language.The project starts with the welcome screen and when any keyis pressed it displays the Main Menu which has 4 optinons:

    1. Customer Maintenance

    2. Enquiry3. Reports4. Exit1. Customer maintenance: you will be prompted with 5

    options as follows:1. New Customer: to add the record of new customer.2. Transaction: to made new transactions.3. Modify customer:to make changes in existing

    records.4. Close accounts:to close the existing accounts5. Return to main menu: to come back to main menu.

    2.Enquiry :to make enquiry abount any customer.3.Reports:it shows the balance reports,customerdetails,statament of accounts,list of transactions.

    6

  • 7/27/2019 Jyoti 3

    7/50

    ADVANTAGES OF PROPOSEDSYSTEM

    The proposed system removes all the limitations of existingmanual system .The main advantages of the proposedsystem are:-

    1. EASY ACCESSEBILITY: - In the proposed system, wecan get all the information about accounts at any time oncomputers. We can add, view, and delete accounts andvouchers according to our requirement. So proposedsystem has the feature of easy accessibility.

    2. HELP IN MANAGEMENT: - All the information is storedat one place and can be derived at any time. With thehelp of this information, management can be done anddecision can be taken and plan can be made.

    3. REDUCE WORK LOAD :-In the proposed system , nopaper work is done . All the data stored at one place . Itreduces the workload of accountants because now thereis no need to record transactions in different books.

    4. HELPFUL IN BETTER AND EFFICIENT RETRIEVALOF DATA: -The important data according to ourrequirement, in other words, selected information can beretrieved easily.

    5. HELPFUL IN PREPARING A FLEXIBLE SYSTEM: -Changes can be made in the proposed system,according to our requirement, because using CLANGUAGE develops this system. Hence this systemhas the feature of flexibility.

    6. HELPFUL IN EDITING: - In the proposed system, datacan be edited when required and changes can be madeand errors can be deducted easily.

    7. PROVIDE READYMADE INFORMATION TO USER:- Asthe information is stored at one place , user can get any

    7

  • 7/27/2019 Jyoti 3

    8/50

    information . In other words, this system providesreadymade information to user.

    8. REDUCE FAULT AND ERRORS: - In proposed system,chances of errors are less, because the computers do all

    the calculations. As the user provides the data, thecomputer will provide output according to user input. Inthis way, the proposed system reduces the chances oferrors and fault.

    9. EASY CALCULATIONS: - In the proposed system,calculations can be done very easily. Balancing ofaccounts, daybook and balance report provided by thissystem and calculations are performed easily.

    8

  • 7/27/2019 Jyoti 3

    9/50

    HARDWARE REQUIREMENT

    Hardware configuration

    COMPONENTS VERSIONS

    COMPUTER Pentium-IV 1.5 GHz and

    above with 256MB RAM

    AUXILARY STORAGE 1.44MB Floppy DISKDRIVE,20GB HARDDISK56X CD-ROM

    VDU VGA COLOUR MONITOR

    KEYBOARD MULTIMEDIA

    PRINTER LASER PRINTER

    9

  • 7/27/2019 Jyoti 3

    10/50

    INITIAL INVESTIGATIAL

    The initial investigation phase has the objective of determiningthe user requirements and studying the present system toverify the problem and defining the performance expected bythe candidate system to meet the user requirement. The first isto determine the users request to change, improve or enhancethe existents system. There can be stream of requests, so,some standard procedure mist be established to deal withthem investigation is to determine whether users requests arevalid or not.

    The following steps in initial investigation take place: -

    Defining problem

    Evaluating user requirements

    Background analysis

    Fact finding

    Fact analysis Determination of feasibility

    Defining ProblemThe first step in initial investigation is to define the problem thatleads to user requirement. The problem must be stated clearly,evaluated properly, understood & agreed upon by the user &analysts. Problem must specify the objective to be achieved &

    the results that user want in. In many companies there is aproblem that the system is manual & hence it is slow & in caseof any updating of any task it is very difficult. So these allproblems can be solved if we introduce computers in theorganization.

    10

  • 7/27/2019 Jyoti 3

    11/50

    Evaluating User RequirementThe second step in initial investigation is to evaluate the user

    requirements. It is investigated which type of sources areneeded by the user.

    Background AnalysisIn this analyst begins to learn about the existing system &physical process related to the system. After defining theproblem & getting user requirement the analyst now gather therequired information. Background information about companyincludes gathering information. Analyst then prepares anorganization chart. Background information about the systemhelps the analyst to visualize what is the problem in existingsystem.

    Fact FindingAfter obtaining the background knowledge the analyst beginsto collect data on the existing system, its, input, output &cost.Special tools are also known as information gathering tools.

    Review of written document On site observation

    Questionnaire

    Interviews

    Fact AnalyzingData collected using fact-finding tools must be organized &evaluated. Conclusion has to be drawn from this data from

    preparing a report given tom user for final review and approval.Tools for fact finding are: -

    I/O analyzing: - I/O analyzing identifies the elements that arerelated to inputs &outputs of a given system. Flow charts, dataflow diagrams are excellent tools for I/O analysis.

    11

  • 7/27/2019 Jyoti 3

    12/50

    Decision Table: - Decision table describe the data flow with ina system. They generally used as a supplement when complexdecision logic represented in a flow chart.

    Structure Chart: - It is a working tool and an excellent way tokeep track of the data collected of a system.

    Determination Of FeasibilityAfter organizing and summarizing data the analyst has thethorough knowledge of the system. He has informed about thefollowing: -

    About the names, position of the user personnel.Specification of the good and bad feature of the current system

    12

  • 7/27/2019 Jyoti 3

    13/50

    FEASIBILITY STUDY

    During the course of completion of this project work thecomplete analysis of the proposed system was done. In theanalyzing task a complete care about the feasibility of theproposed system was taken. The following feasibility analysiswas carried during the course of this project work onCUSTOMER ACCOUNTING SYSTEM.

    ECONOMIC FEASIBILITY TECHNICAL FEASIBILITY OPERATIONAL FEASIBILITY

    1. ECONOMIC FEASIBILITYThe cost involved in designing and implementation of theproposed system is as follows: -

    Analysis and design cost: - The cost of analysis anddesigning can be worked out by calculating the number ofhuman days spend on analysis and designing of theproject and then multiplying the number of days with thecost of human day.

    Programming cost: - The cost is also calculated bycalculating the number of human days spends on thecoding of the project and then multiplying the number ofdays with the cost of human day.

    Stationary and miscellaneous expenses: - The cost ofcomputer stationary is less than the cost of other notcomputer based stationary.

    2. TECHNICAL FEASIBILITYThe existing hardware and software facilities support theproposed system. Computers and storage media areavailable and the software can be developed. Basic

    13

  • 7/27/2019 Jyoti 3

    14/50

    technical requirements of the system and all aspects thatthe existing system facilities.

    Hardware: - There is need of Pentium machines withwindows 2000 server and printer for reports.

    Manpower: -There is need of accountant expert incomputer for implementing this system.

    3. OPERATIONAL FEASIBILITYThe present system is operationally feasible, as it has becomeeasy to have details regarding which user has logged on thesystem and time of login, time of logon, and what informationis transferred.

    14

  • 7/27/2019 Jyoti 3

    15/50

    SYSTEM DESIGN

    Designing anything is it physical, arithmetic or social, it iscreative process. System design is a logical approach, eachstep being the result of decision, based upon the previousstep. In fact practically efficiency, least cost, flexibility andsecurity are the main objectives, which should keep in mindat the time of design of the system. Output needed and itsexact layout need, specification for input is made and thenlogic is developed and a layout of files to be used isdetermined. There are various phases of system design.

    These are: -

    Input Design

    Output Design

    Database Design

    Program Design

    15

  • 7/27/2019 Jyoti 3

    16/50

    16

  • 7/27/2019 Jyoti 3

    17/50

    DFD for adding new customer a/c in the

    customer database

    Check customer status Customer status updated

    17

    USERPROCESS

    CHECK

    A/C

    NUMBER

    PROCESS

    EDIT

    PROCESSMODIFY

    RECORD

    CUSTOMER

    DATABASE

    UPDATED

    CUSTOMER

    DATABASE

  • 7/27/2019 Jyoti 3

    18/50

    DFD for deleting new customer a/c in the

    customer database

    18

    USER

    PROCESS

    CHECKA/C

    NUMBER

    PROCESSDELETED

    PROCES

    MODIFY

    RECORD

    CUSTOMER

    DATABASE

    CUSTOME

    DATABAS

  • 7/27/2019 Jyoti 3

    19/50

    19

  • 7/27/2019 Jyoti 3

    20/50

    SOURCE CODE

    #include#include#include#include#include#define MINBAL 500void welcome();

    void draw_box(int,int,int,int);void draw_line(char,int);void acct_maint();void menu1();void add_acct();void mod_acct();void cusdetail();void repomenu();void disp_acct();void hdng1();

    void hdng();void disp_baln();void amt_trans();void dailytrans();void statement();void clos_acct();void enquiry();int chkexit(int);struct

    {int acno;char name[20],fname[20];char add1[15],add2[15],add3[15];float balance,opn_bal;}customer,newcust;

    20

  • 7/27/2019 Jyoti 3

    21/50

    struct{int acno;float amt;char dt[11];}transact;void main() //main starts{int opn=2;welcome();while(opn>=1&&opn

  • 7/27/2019 Jyoti 3

    22/50

    case 4:printf("bye see you again");}}} //end of the programvoid welcome(){clrscr();draw_box(1,1,78,23);draw_box(5,3,73,20);draw_box(30,7,46,9);gotoxy(32,8);cprintf("WELCOME");gotoxy(15,11);

    cprintf(" CUSTOMER ACCOUNTING SYSTEM");draw_box(10,10,68,13);getch();}void draw_box(int l,int t,int r,int b) //box drawing procedure{int i;gotoxy(l,t);textcolor(RED);cprintf("%c",201);for(i=l+1;i

  • 7/27/2019 Jyoti 3

    23/50

    for(i=t+1;i

  • 7/27/2019 Jyoti 3

    24/50

    {draw_box(25,8,55,20);gotoxy(30,9);printf("customer maintenance");gotoxy(28,11);printf("1. new customer");gotoxy(28,13);printf("2. transactions");gotoxy(28,15);printf("3. modify customer");gotoxy(28,17);printf("4. close account");gotoxy(28,19);printf("5. return to main menu");

    gotoxy(31,21);printf("enter your option");scanf("%d",&opn1);switch(opn1){case 1:printf("new customer details");add_acct();clrscr();break;case 2:printf("transactions");amt_trans();break;case 3:printf("editing customer details");mod_acct();clrscr();break;

    case 4:printf("account closing");clos_acct();clrscr();break;case 5:if(opn1==5)

    24

  • 7/27/2019 Jyoti 3

    25/50

    break;}}}void add_acct() //addition of customer{char c,nxt='Y';int q=1,q1=1,accno,n;FILE *f1;while(nxt=='y'){q=1;q1=1;clrscr();

    draw_box(17,3,60,6);gotoxy(24,4);printf("new customer details account opening");gotoxy(24,5);printf("---------------------------");while(q){draw_box(8,7,70,16);gotoxy(10,8);printf("enter the account number");scanf("%d",&accno);if(accno

  • 7/27/2019 Jyoti 3

    26/50

    f1=fopen("customer.txt","a+");customer.acno=accno;fflush(stdin);gotoxy(10,9);printf("customer name:");gets(customer.name);gotoxy(10,10);printf("customer's father name:");gets(customer.fname);gotoxy(10,11);printf("customer address:");gets(customer.add1);gotoxy(10,12);printf(" :");

    gets(customer.add2);gotoxy(10,13);printf(" :");gets(customer.add3);while(q1){gotoxy(10,15);printf("amount:");scanf("%f",&customer.balance);if(customer.balance==0)printf("amount cannot be zero.re-enter");elseq1=0;}customer.opn_bal=customer.balance;fwrite(&customer,sizeof(customer),1,f1);fclose(f1);printf("\n more new customer(y/n)?");nxt=toupper(getch());

    }}void mod_acct() //editing customer details{int accno;char yorn,found='N';char nm[20],fnm[20];

    26

  • 7/27/2019 Jyoti 3

    27/50

    char ad1[15],ad2[15],ad3[15];float bal=0.0;FILE*f1,*f2;clrscr();f1=fopen("customer.txt","r");f2=fopen("data.txt","w");printf("enter the customer number");scanf("%d",&accno);while(fread(&customer,sizeof(customer),1,f1)!=0){if(customer.acno==accno){found='Y';bal=customer.balance;

    strcpy(nm,customer.name);strcpy(fnm,customer.fname);strcpy(ad1,customer.add1);strcpy(ad2,customer.add2);strcpy(ad3,customer.add3);draw_box(17,3,60,6);gotoxy(24,4);printf("editing of customer information");gotoxy(24,5);printf("------------------");cusdetail();gotoxy(20,15);printf("do you want to edit(Y/N)");if(yorn=='Y');{gotoxy(10,17);textcolor(GREEN);cprintf("press ENTER to retain the old data");textcolor(WHITE);

    gotoxy(10,18);fflush(stdin);printf("customer name :");gets(nm);gotoxy(10,19);printf("father name :");gets(fnm);

    27

  • 7/27/2019 Jyoti 3

    28/50

    gotoxy(10,20);printf("customer address:");gets(ad1);gotoxy(10,21);printf(" city: ");gets(ad2);gotoxy(10,22);printf(" state :");gets(ad3);customer.balance=bal;if(strlen(nm)!=0)strcpy(customer.name,nm);if(strlen(fnm)!=0)strcpy(customer.fname,fnm);

    if(strlen(ad1)!=0)strcpy(customer.add1,ad1);if(strlen(ad2)!=0)strcpy(customer.add2,ad2);if(strlen(ad3)!=0)ststrcpy(customer.add3,ad3);}}fwrite(&customer,sizeof(customer),1,f2);}fclose(f1);fclose(f2);remove("customer.txt");remname("data.txt","customer.txt");if(found=='N'){printf("\n%daccount number not found",accno);getch();}

    }void cusdetail(){draw_box(8,7,70,16);gotoxy(10,8);printf("customer number:%d",customer.acno);gotoxy(10,9);

    28

  • 7/27/2019 Jyoti 3

    29/50

    printf("customer name:%s",customer.name);gotoxy(10,10);printf("father's name:%s",customer.fname);gotoxy(10,11);printf("customer address:%s",customer.add1);gotoxy(10,12);printf("city:%s",customer.add2);gotoxy(10,13);printf("state:%s",customer.add3);gotoxy(10,14);printf("balance is:%15.f",customer.balance);}void repomenu() //reports menu{

    int opn1;char opn;opn1=2;while(opn1>=1&&opn1

  • 7/27/2019 Jyoti 3

    30/50

    disp_baln();break;case 2:printf("customer details");disp_acct();break;case 3:printf("statement of accounts");statement();clrscr();break;case 4:printf("transaction report");clrscr();

    do{printf("\nA. for all transactions B.for a date");opn=toupper(getch());if(opn=='A')dailytrans();if(opn=='B');datetrans();}while(opn=='A'||opn=='B');break;case 5:if(opn1==5)break;}}

    disp_acct() //listing of all customer details{int ln=3;

    FILE *f1;f1=fopen("customer.txt","r");if(f1==NULL){printf("CUSTOMER.TXT file not exist");getch();}

    30

  • 7/27/2019 Jyoti 3

    31/50

    hdng1();while(fread(&customer,sizeof(customer),1,f1)!=0){printf("\n");printf("%-20s%-20s",customer.name,customer.fname);printf("%5d",customer.acno);printf("%15.2f\n",customer.balance);printf("%-15s%-15s",customer.add1,customer.add2);printf("%-15s\n",customer.add3);draw_line('-',77);ln=ln+3;if(ln>18){printf("\npress any key to continue");

    getch();hdng1();ln=3;}}

    fclose(f1);getch();}void hdng1(){clrscr();gotoxy(32,2);cprintf("list of customers");gotoxy(1,3);draw_line('*',77);gotoxy(3,4);textcolor(BLUE);printf("customer's name father's name account number

    balance");gotoxy(3,5);cprintf("address");gotoxy(1,6);draw_line('*',77);textcolor(WHITE);}

    31

  • 7/27/2019 Jyoti 3

    32/50

    void disp_baln() //listing of balance of all customers{float tot=0.0;int sno=0,ln=3;FILE *f1;f1=fopen("customer.txt","r");if(f1==NULL)printf("\nCUSTOMER.TXT file not exist");hdng();while(fread(&customer,sizeof(customer),1,f1)!=0){sno=sno+1;printf("\n");printf("%5d%5d",sno,customer.acno);

    printf(" %-20s%15.2f\n",customer.name,customer.balance);tot=tot+customer.balance;ln=ln+2;if(ln>19){printf("press any key to continue");getch();hdng();ln=3;}}fclose(f1);draw_line('=',77);textcolor(WHITE);cprintf(" total %15.2f",tot);printf("\n");draw_line('=',77);getch();}

    void hdng(){clrscr();gotoxy(32,2);cprintf("list of customers with balances");gotoxy(1,3);draw_line('*',77);

    32

  • 7/27/2019 Jyoti 3

    33/50

    gotoxy(3,4);textcolor(BLUE);cprintf("sr.no.A/C no. customer name balance");gotoxy(1,5);draw_line('*',77);printf("\n");textcolor(WHITE);}void amt_trans() //transaction posting procedure{int accno,q1,dd,mm,yy;float amt=0.0,t;char dorc='C',found='N';char ds[3],ms[3],ys[5],dm[6],dt[11];

    struct date d;FILE *f1,*f2,*f3;f1=fopen("customer.txt","r");f2=fopen("data.txt","w");f3=fopen("trans.txt","a");clrscr();printf("\nenter the customer number");scanf("%d",&accno);while(fread(&customer,sizeof(customer),1,f1)!=0){if(customer.acno=accno){found='Y';while(q){printf("\n(D)ebit or(C)redit(Q)uit:");dorc=toupper(getch());if(dorc=='Q')exit(0);

    if(dorc!='Q'&& dorc!='D'&& dorc!='C')printf("\ninvalid option");elseq=0;}printf("\nenter the amount:");scanf("%f",&amt);

    33

  • 7/27/2019 Jyoti 3

    34/50

    if(dorc=='D'&&(MINBAL>(customer.balance-amt)))printf("\nNOT ENOUGH BALANCE");else{if(dorc=='C'){customer.balance=customer.balance+amt;}if(dorc=='D'){customer.balance=customer.balance-amt;amt=amt*(-1);}getdate(&d);

    dd=d.da_day;mm=d.da_mon;yy=d.da_year;itoa(dd,ds,10);itoa(mm,ms,10);itoa(yy,ys,10);strcpy(dm,ds);strcat(dt,dm);strcpy(dt,dm);strcat(dt,ys);transact.acno=customer.acno;transact.amt=amt;strcpy(transact.dt,dt);fwrite(&transact,sizeof(transact),1,f3);}}if(dorc=='Q'||dorc=='Q');{fclose(f1);

    fclose(f2);fclose(f3);remove("customer.txt");renamr("data.txt","customer.txt");exit(0);}fwrite(&customer,sizeof(customer),1,f2);

    34

  • 7/27/2019 Jyoti 3

    35/50

    }fclose(f1);fclose(f2);fclose(f3);remove("customer.txt");rename("customer.txt");if(found=='N')printf("\n%d account number not found",accno);getch();}void dailytrans() //listing of all transactions{int sn=0,ln=3;float crtot=0.0,drtot=0.0;

    FILE *f3;clrscr();f3=fopen("trans.txt","r");if(f3==NULL){printf("\n TRANS.TXT file not exist");getch();}printf("\n list of transactions\n");draw_line('-',75);printf("\nSr.no. Date A/C no. Credit Debit\n");draw_line('-',75);while(fread(&transact,sizeof(transact),1,f3)!=0){sn=sn+1;printf("\n%5d%11s%5d",sn,transact.dt,transact.acno);if(transact.amt

  • 7/27/2019 Jyoti 3

    36/50

    }ln=ln+1;if(ln>22){printf("\npress any key to continue");getch();clrscr();printf("\n list of transactions\n");draw_line('-',75);printf("\nsr.no. date A/C no. credit debit\n");draw_line('-',75);ln=3;}}

    printf("\n");draw_line('-',75);printf("\ntotal %15.2f%15.2f\n",crtot,drtot);draw_line('-',75);fclose(f3);getch();}void datetrans() //listing of transactions for a particular date{int sn=0;float crtot=0.0,drtot=0.0;char dt[9];FILE *f3;clrscr();f3=fopen("trans.txt","r");printf("enter the date(DDMMYYYY)");scanf("%s",&dt);printf("\nlist of transactions");draw_line('-',75);

    printf("\nsr.no. date A/C no. credit debit\n");draw_line('-',75);while(fread(&transact,sizeof(transact),1,f3)!=0){if((strcmp(dt,transact.dt))==0){sn=sn+1;

    36

  • 7/27/2019 Jyoti 3

    37/50

    printf("\n%5d%11s%5d",sn,transact.dt,transact.acno);if(transact.amt

  • 7/27/2019 Jyoti 3

    38/50

    printf("customer name:%s",customer.name);printf("\naccount number: %5d",customer.acno);printf("\nfather's name :%s",customer.fname);printf("\naddress :%s",customer.add1);printf("\n :%s",customer.add2);printf("\n :%s",customer.add3);printf("\n balance :%15.2f",customer.balance);tbal=customer.opn_bal;printf("\n");draw_line('=',78);printf("\n");printf("sr.no. date ");printf("credit debit balance");printf("\n");

    printf("opening balance %15.2f",customer.opn_bal);while(fread(&transact,sizeof(transact),1,f3!=0)){if(transact.acno==accno){found='Y';sn=sn+1;printf("\n%4d %s",sn,transact.dt);if(transact.amt>0){crtot=crtot+transact.amt;tbal=tbal+transact.amt;printf(" %15.2f",transact.amt);printf(" %15.2f",tbal);}else{drtot=drtot+transact.amt;tbal=tbal+transact.amt;

    printf(" %15.2f",transact.amt);printf("%15.2f",tbal);}}}printf("\n");draw_line('~',78);

    38

  • 7/27/2019 Jyoti 3

    39/50

    printf("\n");printf("total %15.2f, %15.2f ",drtot,tbal);}}if(found=='N')printf("\n%daccount number not found",accno);fclose(f1);fclose(f3);getch();}void clos_acct() //account closing procedure{int accno;char cor,yorn;

    char found='N';FILE *f1,*f2;f1=fopen("customer.txt","r");f2=fopen("data.txt","w");clrscr();printf("\n ACCOUNT CLOSING");printf("\n enter the account number");scanf("%d",&accno);clrscr();while(fread(&customer,sizeof(customer),1,f1)!=0){yorn='N';cot='N';if(customer.acno==accno){found='Y';draw_box(15,5,60,13);gotoxy(17,6);cprintf("account number : %5d",customer.acno);

    gotoxy(17,7);cprintf("customer name :%-20s",customer.name);gotoxy(17,8);cprintf("father's name :%-20s",customer.fname);gotoxy(17,9);cprintf("address :%-15s",customer.add1);gotoxy(17,10);

    39

  • 7/27/2019 Jyoti 3

    40/50

    cprintf(" :%-15s",customer.add2);gotoxy(17,11);cprintf(" :%-15s",customer.add3);gotoxy(17,12);cprintf("Balance :%15.2f",customer.balance);printf("\n");printf("\n IS THIS RECORD CORRECT(Y/N)?");cor=toupper(getch());if(cor=='Y'){gotoxy(25,16);textcolor(RED+BLINK);cprintf("ARE YOU SURE YOU WANT");gotoxy(25,17);

    cprintf("TO DELETE THIS RECORD(Y/N)?");yorn=toupper(getch());textcolor(WHITE);}}if(yorn!='Y')fwrite(&customer,sizeof(customer),1,f2);if(found=='Y' && yorn=='Y'){printf("\nrecord deleted");getch();}if(found=='Y' && cor=='Y' && yorn=='N'){printf("\nrecord not deleted");getch();}

    if(found=='N')

    {printf("\n%d Account number not found",accno);getch();}fclose(f1);fclose(f2);remove("customer.txt");

    40

  • 7/27/2019 Jyoti 3

    41/50

    rename("data.txt"."customer,txt");}void enquiry(){int accno;

    FILE *f1;f1=fopen("customer.txt","r");clrscr();printf("Enter the customer number");scanf("%d",&accno);draw_box(22,3,35,6);gotoxy(24,4);printf("ENQUIRY");

    gotoxy(24,5);printf("----------");while(fread(&customer,sizeof(customer),1,f1)!=0){if(customer.acno==accno){cusdetail();}}fclose(f1);getch();}intchkexist(inta){int y=0;FILE*f1;f1=fopen("customer.txt","r");while(fread(&customer,sizeof(customer),1,f1)!=0){

    if(customer.acno==a)y=1;elsey=0;}fclose(f1);return y;

    41

  • 7/27/2019 Jyoti 3

    42/50

    }

    42

  • 7/27/2019 Jyoti 3

    43/50

    43

  • 7/27/2019 Jyoti 3

    44/50

    44

  • 7/27/2019 Jyoti 3

    45/50

    45

  • 7/27/2019 Jyoti 3

    46/50

    46

  • 7/27/2019 Jyoti 3

    47/50

    47

  • 7/27/2019 Jyoti 3

    48/50

    BENEFITS OF THE PROJECT

    The following are the benefits from the system: -

    1. All the reports are timely generated with 100% accuracy2. Fast retrieval of data.3. No delay in meeting notices.4. Neat and clean reports.5. Lesser cost as compared to existing system.6. The user can handle a no. Of queries at a given time.

    7. The data can be printed on printer.

    48

  • 7/27/2019 Jyoti 3

    49/50

    LIMITATIONS OF THE PROJECT

    Every system has some drawbacks. While designing thesoftware, every care has been taken but still the following arethe points were left during the development: -

    1. There is no provision for backup of data from systemfailures or corruption of data.

    2. The results of output depend upon the accuracy of datainput by the user.

    3. It is a stand-alone system.4. No security is provided.5. This software can print data on plain papers, not on

    preprinted papers.

    49

  • 7/27/2019 Jyoti 3

    50/50

    CONCLUSION

    By developing this project I concluded that computerizedsystem makes the working more easy and understandable.Because of the computerized system the company has noneed to maintain big registers, as the information of bigregisters can be stored in small floppies and that for long time.In the project report also we have studied how we can keepour computer controlled with the help of computerizedapproach. We come to know that how through main menu, thecomputer control the overall system of financial controlsystem . It is not possible to spend a lot of time in maintainingbulky register for record for company either big or smallbecause it is time consuming as well as money consuming andalso the manual system is not very fast. The main advantageof the computerized accounting system is that the accountsare prepared faster and with accuracy. The accounting reportscan be generated at any time. But the drawback is that the

    user have experience, how to operate the accounts and hehas to do some paper work before entering the accountinformation on paper. Moreover the company have to preparesome document manually which are generated by this project.The financial accounting is very wide application.