0
Hi stuck in this code kindly help in python.
Design an application in of small POS (Point of Sale) in which you generate burger type, quantity, rate and amount line by line at the end it will print the total sum and 13 % GST. Keep in mind that each receipt has username, and date of print. Create a function which can solve your problem.
8 ответов
+ 4
On what code you stuck?
You have not linked your code.
+ 1
0
import time
def pos (username, burger_type, quantity):
print()
print(time.strftime( '%:%M %p, %a, %d/%b/%Y'))
print("NAME:", username)
if burger_type=='big':
quan=quantity
amount=quan*100
GST_Amount =(amount*13)/100
Net_Price_amount + GST_Amount
elif burger_type=='small':
quan=quantity
amount=quan*100
GST_Amount =(amount*13)/100
Net_Price= amount+ GST_Amount
print("BRUGER TYPE :" ,burger_type)
print("QUANTITY:",quantity)
print("AMOUNT:",AMOUNT)
print("GST(13%)AMOUNT:",GST_Amount)
print("TOTAL AMOUNT: " , Net_Price)
0
Thanks alot ❣️❣️❣️❣️❣️❣️
0
Sir can you change this into while loop?
0
Sir can you change this code into while loop???
0
SAfiullaH KhoKhar Why a while loop?
0
import time
def pos (username, burger_type, quantity):
print()
print(time.strftime( '%:%M %p, %a, %d/%b/%Y'))
print("NAME:", username)
if burger_type=='big':
quan=quantity
amount=quan*100
GST_Amount =(amount*13)/100
Net_Price_amount + GST_Amount
elif burger_type=='small':
quan=quantity
amount=quan*100
GST_Amount =(amount*13)/100
Net_Price= amount+ GST_Amount
print("BRUGER TYPE :" ,burger_type)
print("QUANTITY:",quantity)
print("AMOUNT:",AMOUNT)
print("GST(13%)AMOUNT:",GST_Amount)
print("TOTAL AMOUNT: " , Net_Price)