In Python version 3.12, The Petrol Bunk Billing System is developed with Some Attributes.
They are, Fuel Items, Bill Number, Customer Name, Vehicle Number, Amount and Total Price. And this Project perform the calculation process and print the bill in the standard format.
They are, Fuel Items, Bill Number, Customer Name, Vehicle Number, Amount and Total Price. And this Project perform the calculation process and print the bill in the standard format.
#Code :
from datetime import datetime
cnt=int(input("Enter Fuel No : "))
dt=datetime.now()
d=dt.strftime("%d-%m-%Y")
t=dt.strftime("%H-%M-%S")
fuel={
"petrol" : 100,
"diesel" : 150,
"oil" : 35
}
fuels=[]
amt,tot=0,0
bno=int(input("Enter Bill No : "))
cus_name=input("Enter Customer Name : ").upper()
vno=input("Enter Vehicle No : ").upper()
for i in range(cnt):
item=input("Enter the Fuel : ").lower()
qty=int(input("Enter the Qty : "))
fuels.append(item)
print("\n\n\tRAHUL LUCIFER PETROLEUM")
print("\t UDUMALPET - 642126\n\n")
print(f"Date : {d}\tTime : {t}")
print(f"Vehicle No : {vno}")
print("******************************************")
print("ITEM\tQTY@RATE\tAMOUNT")
print("******************************************")
for i in fuels:
amt=qty*fuel[i]
tot+=amt
print(f"{i}\t {qty}@{fuel[i]}\t\t{amt}")
print("******************************************")
print(f"\t\tTotal : {tot}")
print("******************************************")
print("\n\tThank You Visit Again")