cse 202.doc...divya
TRANSCRIPT
-
8/3/2019 Cse 202.Doc...Divya
1/24
LOVELY PROFESSIONAL UNIVERSITY
TERM PAPER
OF
OBJECT ORIENTED PROGRAMMING SYSTEM
CSE:-202
TOPIC :- PETROL PUMP MANAGEMENT SYSTEM
SUBMITTED TO:- SUBMITTED BY:-
Mr.Shaishav Aggarwal Divya Mahajan
Section:-RE1801
Roll No:-A10
Course:-B-Tech(CSE)
Redg No:-10812533
-
8/3/2019 Cse 202.Doc...Divya
2/24
ACKNOWLEDGEMENT
We are extremely grateful and remain indebted to our guide Mr.Shaishav Aggarwal for being a
source of insipiration and for his constant support in the design,implementation and evaluation of
the project.We are thankful to them for their constant constructive criticism and invaluable
suggestions,which benefited us a lot while developing the project onPetrol Pump
Management.He has been a constant source of insipiration and motivation for hard work.He has
been very co-operative throughout this project work.Through this column,it would be our atmost
pleasure to express our warm thanks to him for their encouragment,co-operation and consent
without which we mightnt be able to accomplish this project.
We also express our gratitude to Mr.Shaishav Aggarwal for providing us the
infrastructure to carry out the project and to all staff members who were directly and indirectly
instrument in enabling us to stay committed for the project.
THANKING YOU
Divya Mahajan
-
8/3/2019 Cse 202.Doc...Divya
3/24
CONTENTS:-
1.Preface
2.Process description
3.Source code
4.Features of petrol pump management
5.Benefits of petrol pump management
6.Refrences
7.Bibliography
-
8/3/2019 Cse 202.Doc...Divya
4/24
PREFACE
This project ofPetrol Pump Managementof gives us the complete information about the petrol
pump.We can enter the record of petrol and diesel which is available in petrol pump,In thisproject we can maintain the rate of diesel and all kind of petrol.
Throughout the project the focus has been on presenting information and comments in
an easy and intelligible manner.The project is very useful for those who want to know about
petrol pump management system.
In the last,we gratefully acknowledge and express our gratitude to all staff members
of PRS computer and friends who supported us in preparing this project.
PROCESS DESCRIPTION
ThePETROL PUMP MANAGEMENT SYSTEMis designed and developed for a rates and
types and record of petrol in te petrol pump along with the customer details.The petrol received
in the petrol pump are entered in record list and the next customer entered in the record list.When
the customer wants to get the desired petrol or diesel the on the availability basis to the
customer.The customer has to pay the price of petrol or diesel ,if any on the basis of no.of rates
of the petrol or diesel in the petrol pump.
-
8/3/2019 Cse 202.Doc...Divya
5/24
SOURCE CODE
#include
#include
#include #include
#include
#include #include
#include
#include
int i,j,li,lp,rec;
void help();
char ch,choice;
class DRAW{
public :void LINE_HOR(int, int, int, char) ;
void LINE_VER(int, int, int, char) ;
void BOX(int,int,int,int,char) ;} ;
class CHARGE
{
private :int Category ;
float oil, petrol, diesal, extra, other ;void DISPLAY(int) ;void MODIFY_RECORD(int, float, float, float, float, float) ;
public :void ADDITION(void) ;
void MODIFICATION(void) ;
void FEE_SLIP(void) ;
void LIST(void) ;void HELP(void);
}fee ;
//**********************************************************
// MAIN MENU FUNCTION
//**********************************************************
void mainmenu()
{ clrscr();textcolor(WHITE);
-
8/3/2019 Cse 202.Doc...Divya
6/24
for(li=30;li=30;li--)
{textcolor(WHITE);
gotoxy(li,29-1);
delay(30);
printf("*");}
for(lp=15;lp=15;lp--)
{
gotoxy(50,lp-1);delay(100);
printf("|");
}gotoxy(15,10);
textcolor(LIGHTGRAY);
cprintf("Press the corresponding Keys for the desired action");gotoxy(35,15);
textcolor(BROWN);
cprintf("C: CHARGE SLIP");gotoxy(35,17);
textcolor(LIGHTMAGENTA);
cprintf("M: MODIFY");
gotoxy(35,19);textcolor(LIGHTBLUE);
cprintf("L: LIST");
gotoxy(35,21);textcolor(LIGHTRED);
cprintf("H: HELP");
gotoxy(35,23);textcolor(GREEN);
cprintf("Q: QUIT");
choice=getch();
ch=toupper(choice);
-
8/3/2019 Cse 202.Doc...Divya
7/24
switch(ch)
{
case'C':fee.FEE_SLIP();break;
case'M':fee.MODIFICATION();
break;case'L':fee.LIST();
break;
case'H':fee.HELP();break;
case'Q':exit(0);
break;
default:clrscr();gotoxy(33,40);
cout
-
8/3/2019 Cse 202.Doc...Divya
8/24
}
//**********************************************************
// FUNCTION TO DRAW BOX LINE
//**********************************************************
void DRAW :: BOX(int column1, int row1, int column2, int row2, char c)
{char ch=218 ;
char c1, c2, c3, c4 ;
char l1=196, l2=179 ;
if (c == ch){
c1=218 ;
c2=191 ;
c3=192 ;c4=217 ;
l1 = 196 ;l2 = 179 ;
}
else
{c1=c ;
c2=c ;
c3=c ;c4=c ;
l1 = c ;
l2 = c ;}
gotoxy(column1,row1) ;
cout
-
8/3/2019 Cse 202.Doc...Divya
9/24
LINE_VER(row1,row2,column1,l2) ;
LINE_VER(row1,row2,column2,l2) ;
}
//**********************************************************// FUNCTION TO ADD FEE STRUCTURE IN CHARGE FILE
//**********************************************************
void CHARGE :: ADDITION(void)
{
fstream file ;
file.open("FEE.DAT", ios::in) ;if (!file.fail())
return ;
file.close() ;
file.open("FEE.DAT", ios::app) ;for (int i=1; i
-
8/3/2019 Cse 202.Doc...Divya
10/24
void CHARGE :: LIST()
{clrscr() ;
DRAW d ;
textcolor(MAGENTA);d.BOX(1,2,80,24,218) ;
gotoxy(27,3) ;
cout
-
8/3/2019 Cse 202.Doc...Divya
11/24
{
gotoxy(5,5) ;
cout
-
8/3/2019 Cse 202.Doc...Divya
12/24
other= tactivity ;
temp.write((char *) this, sizeof(CHARGE)) ;
}else
temp.write((char *) this, sizeof(CHARGE)) ;
}file.close() ;
temp.close() ;
file.open("FEE.DAT", ios::out) ;temp.open("temp.dat", ios::in) ;
temp.seekg(0,ios::beg) ;
while (!temp.eof())
{temp.read((char *) this, sizeof(CHARGE)) ;
if (temp.eof())
break ;
file.write((char *) this, sizeof(CHARGE)) ;}
file.close() ;temp.close() ;
}
//**********************************************************
// FUNCTION TO GIVE DATA TO MODIFY THE CHARGE RECORD
//**********************************************************
void CHARGE :: MODIFICATION(void)
{clrscr() ;
textcolor(WHITE);
char ch, t1[10] ;int valid=0, t=0, tclass=0 ;
float t2=0 ;
do
{valid = 1 ;
gotoxy(5,25) ; clreol() ;
cout
-
8/3/2019 Cse 202.Doc...Divya
13/24
if (tclass < 1 || tclass > 12)
{
valid = 0 ;gotoxy(5,25) ; clreol() ;
cout
-
8/3/2019 Cse 202.Doc...Divya
14/24
valid = 1 ;
gotoxy(5,27) ; clreol() ;
cout 1000)
{valid = 0 ;
gotoxy(5,27) ; clreol() ;
cout
-
8/3/2019 Cse 202.Doc...Divya
15/24
} while (!valid) ;
if (strlen(t1) == 0)
{modified-- ;
tac = petrol ;
gotoxy(26,18) ;cout
-
8/3/2019 Cse 202.Doc...Divya
16/24
return ;
if (strlen(t1) == 0)
break ;if (tcomputer > 1000)
{
valid = 0 ;gotoxy(5,27) ; clreol() ;
cout
-
8/3/2019 Cse 202.Doc...Divya
17/24
if (!modified)
mainmenu();
gotoxy(5,27) ; clreol() ;do
{
gotoxy(5,25) ; clreol() ;cout
-
8/3/2019 Cse 202.Doc...Divya
18/24
if (tclass < 1 || tclass > 4)
{
valid = 0 ;gotoxy(5,25) ; clreol() ;
cout
-
8/3/2019 Cse 202.Doc...Divya
19/24
d.LINE_HOR(21,60,10,196) ;
d.LINE_HOR(21,60,22,196) ;
d.LINE_HOR(46,60,20,196) ;gotoxy(25,21) ;
cout
-
8/3/2019 Cse 202.Doc...Divya
20/24
cout
-
8/3/2019 Cse 202.Doc...Divya
21/24
}
for(j=21;j>=16;j--)
{gotoxy(70,j);
delay(100);
printf("-");}
gotoxy(16,17);
textcolor(BLINK + MAGENTA);cprintf(" Welcome To DIVYA'S PETROL-PUMP");
gotoxy(18,20);
cprintf("Designed and Coded By DIVYA(B-TECH-CSE) 2009-2010");
gotoxy(18,21);textcolor(LIGHTGREEN);
cprintf("\n Coded By : ");
textcolor(3);
cprintfDivya Mahajan: B.Tech (CSE)");gotoxy(20,23);
textcolor(WHITE);cprintf(" Press Any Key To ..........Continue");
getch();
mainmenu();
}
-
8/3/2019 Cse 202.Doc...Divya
22/24
FEATURES OF PETROL PUMP MANAGEMENT SYSTEM
1.Integrated Solution:- Quicksoft art RM-PP is tightly integrated with accounting and inventory
to givee up-to-date information and crucial actionable data on dues and stocks for follow-up,cost
cutting and timely decision making.
2.Billing and Account:- The major function at any petrol pump is billing and
accounting.Quicksoft,Art RM-PP has strong configurator to suit the needs of different pumps in
terms of rate of interest being charged for over due and previous dues to be shown in invoice and
accounting of the same in real time.Also the rounding off of invoice amount to be given
customer wise and so on.
3.Bussiness Process:- Development of Art RM-PP is backed by the system study and knowledge
sharing by various petrol pumps to understand the process being following at petrol pumps.The
software takes care of meters reading,dip reading with calibration chart,slip entries and invoice
generation seamlessly making it a smooth process flow and workflow to speed up the operation
at the petrol pump.
-
8/3/2019 Cse 202.Doc...Divya
23/24
BENEFITS OF PETROL PUMP MANAGEMENT SYSTEM
1.With automated cash sales entry,auto dip calculations using calibration chart,bulk invoice
generation and option to adjust the receipt of payment against the particular invoice gives user
billwise,vehicle wise outstanding,integrated accounting and inventory.
2.All in one with multi-functional and integrated bussiness processs to take care of their diverse
needs of maintaining records for fuels dispensing,servicing of vehicles ,FMCG
selling,accounting,invoicing and inventory being done in one single software freeing them to use
multiple software for their daily needs.
3.Account processing charges are calculated as per the rate entered the customer.
4.with facility to create multiple tanks,multiple nozzeles,recursive group and subgroup creation
to give comprehensive data visualization.
5.And online ledger,ageing of accounts,reports and MIS at finger tips leading to effective and
improved decision making and with option to export the reports to various format and mails or
fax reports makes it a free flow solution.
-
8/3/2019 Cse 202.Doc...Divya
24/24
REFRENCES:-
1.www.google.com
2.www.wikipedia.com
3.www.ask.com
4.www.answer.com
BIBLIOGRAPHY:-
1.The complete refrence,C++
2.E Balagurusamy,C++