Billing Management System in C++

This program is designed to store the details of a product and store related transactions.

Here is following operation available in this program,

ADMIN
  CREATE BACKUP
  DISPLAY BACKUP 
  DATA RECOVERY
  MONTH DETAIL
  PRINT A COPY
  CHANGE PIN
  DISPLAY RECORD 
  DELETE RECORD
  MODIFY RECORD
  RETURN MAIN MENU
USER
  CREATE RECORD
  DISPLAY RECORD
  SEARCH RECORD
  DELETE RECORD
  MODIFY RECORD
  RETURN MAIN MENU
HELP
EXIT

How to run program-

user-option

To use the program, firstly in the user account, data will be stored from the create-option, in this we will store the serial no, price, quantity and current system date of the product.

Except date, all the other values will be entered by the user i.e. the date will store automatically (by fetch the system date from predefined C++ function)

Therefore, except date, all other details can also be modified.

Only the current month record can be displayed, modified, deleted and searched in the user account.

In the program, a file of every months name will be created. As soon as the month is over, the file for the next month will be automatically created. Therefore, 12 files will be created per year in the program.

admin-option

The admin account will be reset with 4 digit PIN (2356), as no pin will be created in the new system so it is necessary to reset the first time pin.

After this, the program will ask you to set the new pin, now the admin account will be opened with this new pin. The option of Admin is mentioned above.

In this account, the records of all the previous month and current months are modified, deleted, display print and also, how many records the program has stored so far and how many files have been created or when backup has been done, such as operation. Can.

Because the program is large, so only the function member of the program has been given here.

#include<fstream.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
#include<iomanip.h>
#include<stdio.h>
#include<time.h>
#include<string.h>
#include<graphics.h>
#include<process.h> char choice,chc,ch; typedef char month_[200],rec_[100],d_[50]; month_ m[]={"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUN","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"}; rec_ r[]={"JAN","FER","MAR","APR","MA","JU","JUL","AUG","SEPT","OCT","NOV","DEC"}; rec_ p[]={"jan.txt","feb.txt","mar.txt","apr.txt","may.txt","jun.txt","jul.txt","aug.txt","sep.txt","oct.txt","nov.txt","dec.txt"}; d_ d[]={"Searching","Recovering","Printing"}; class bill { public: char s1,s2;int day,year,month; char pr_n[30],qnt[20]; int dt1,dt2,dt3; int pr,sum;int sno; void welcome(); // for little introduction of program void main_menu(); void user_menu(); void admin_menu(); void help(); void get_record(int,int,int,int); // to store record into program void watch(); // displaying date of system int retsno(); void header_d(char[]); void print_bill(); void o_n(char[],int); void e_n(int); void two(char[],int,int); void get_t_price(int); void process(char [],int,int); void convert(int); }x; class database { public: char p1,p2,p3,p4; char m_no[10]; char m_name[60]; void cal_sno(int); void dis_month(); void get_month(); void search(); void delete_(); void modify(); void save_record(); void dis_record(); void pn_cr(); void pn_change(); void log_in(); void cr_backup(); void dt_rec(); void total_pr(); int to_p(int); }z; class arch { public: void dg_box(int,int,int,int,int); void prt(int,int,int,char); void prtl(int,char); void header(); void area(int,int,int,int); // draw a square into monitor void display(int,int,int); void no_record(); void modify_rec(); void month_det(int,int,int,int,int); void working(int,int); // loading bar void printing(); // loading bar void message(); // alert box void log_res(); // login attempt failed }zx; void bill::welcome() { for(int i=150;i<=350;i++) { setfillstyle(8,1); bar(100,150,500,i); delay(6); } setcolor(15) ; outtextxy(282, 180, "LAGACY") ; outtextxy(210, 200, "BILLING DATABASE SYSTEM") ; setcolor(2) ; outtextxy(205,230, "Software Development(IT)"); setcolor(15) ; outtextxy(250, 255,"Presented by"); outtextxy(150, 285, "Govt. C O M M U N I T Y C O L L A G E ") ; outtextxy(130,295," D H R N U D A E") ; setcolor(15) ; outtextxy(180, 370, "Press any key to start . . .") ; getch() ; }

Download the complete program and execute in turbo c ++, at which time, the program will execute it will create the current month file (according to the system date, which can be seen in turbo’s BIN directory). So to understand the program, change the month of your system (by closing the turbo) then you will see that when you open the turbo again and execute the program again, a new file, (the months you have selected). will be created. That is, every new month will create a new file with month name.

download code from here,