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.

23rd Dec 2021, 8:34 PM
SAfiullaH KhoKhar
SAfiullaH KhoKhar - avatar
8 ответов
+ 4
On what code you stuck? You have not linked your code.
23rd Dec 2021, 9:11 PM
Coding Cat
Coding Cat - avatar
23rd Dec 2021, 9:34 PM
Coding Cat
Coding Cat - avatar
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)
23rd Dec 2021, 9:12 PM
SAfiullaH KhoKhar
SAfiullaH KhoKhar - avatar
0
Thanks alot ❣️❣️❣️❣️❣️❣️
23rd Dec 2021, 9:35 PM
SAfiullaH KhoKhar
SAfiullaH KhoKhar - avatar
0
Sir can you change this into while loop?
23rd Dec 2021, 9:44 PM
SAfiullaH KhoKhar
SAfiullaH KhoKhar - avatar
0
Sir can you change this code into while loop???
23rd Dec 2021, 9:46 PM
SAfiullaH KhoKhar
SAfiullaH KhoKhar - avatar
0
SAfiullaH KhoKhar Why a while loop?
23rd Dec 2021, 10:18 PM
Emerson Prado
Emerson Prado - avatar
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)
25th Dec 2021, 7:29 PM
Vishal Adithya
Vishal Adithya - avatar