You are on page 1of 4

Lovely Institute Of Engineering And Computer

Applications

B.tech-M.tech (cse)

Term paper topic:-

PETROL PUMP MANAGEMENT SYSTEM

Course code:- CSE-101

Submitted to: PARUL


KHURANA
I would like to thanks all those who have encouraged me to
make a project. I am grateful to our lecturer Parul khurana,
who acted as a source of inspiration for me. He encouraged me
to make a project. I will never forget his support and word of
wisdom. His immense help and suggestion for improving the
content of the project are highly appreciable .Without his
involvement this project would not have been possible. I am
also thankful to my friends for their help and support.
#include<stdio.h>
#include<conio.h>

Void main ()
{
Char pump_name [25];
long int diesel_price;
long int petrol_price;
long int litre;
long int total_price_diesel;
long int total_price_petrol
long int tot_petrol;
long int tot_diesel;
long int tot_amountp;
long int tot_amountd;
int choice;
clrscr();
printf("\n enter the name of petrol pump=");
gets(pump_name);
printf("\n enter the no. of litres of petrol received by the
dealer");
scanf(“%ld”,&tot_petrol);
printf("\n enter the no. of litres of diesel received by the
dealer");
scanf(“%ld”,&tot_diesel);
printf("\n enter the price of diesel per litre=");
scanf(“%ld”,&diesel_price);
printf("\n enter the price of petrol per litre=");
Scanf (“%ld”,&petrol_price);

printf ("\n\n name of the petrol pump is:");


puts(pump_name);
printf("\n\n no. of litres of petrol received by the dealer:
%ld",total_petrol);
printf("\n\n no. of litres of diesel received by the dealer:
%ld",total_diesel);
printf("\n\n price of diesel per litre is:%ld",diesel_price);
printf("\n\n price of petrol per litre is:%ld",petrol_price);
printf("\n\n enter 1 for petrol,2 for diesel:");
scanf(“%d”,&choice);
switch(choice)
{
case 1:
printf("\n\n enter no. of litres of petrol filled in
customer's vehical=");
scanf(“%ld”,&litre);
total_price_petrol=litre*petrol_price;
printf("\n\n price of petrol filled in customer's vehicle:
%ld", total_price_petrol);
break;
case 2:
printf("\n\n enter no. of litres of diesel filled in
customer's vehical=");
scanf(“%ld”,&litre);
total_price_diesel=litre*diesel_price;
printf("\n\n price of diesel filled in customer's vehicle:
%ld”, total_price_diesel);
break;
}
getch();
}

You might also like