Source Code for Invoice Price Calculator. This code is designed for helping commerce students. This code will help student in cross checking of their final answer.
p = input ("enter name of product")
r = int(input("enter price"))
q = int(input ("quanty of product"))
t = r * q
td = int(input ("enter the percent trade discount"))
tdp = t / 100 * td
patd = t - tdp
pcashd = int(input("enter the pecent of cash discount"))
cgst = int(input("enter the rate of cgst"))
sgst = int(input("enter the rate of sgst"))
gst = cgst + sgst
pgst = patd / 100 * gst
fp = patd + pgst
prcd = fp / 100 * pcashd
pacd = fp - prcd
print ()
print()
print("purchase of total good =",t)
print()
print("trade discount=",tdp)
print()
print("your price after trade discount=",patd)
print()
print("total tax price=",pgst)
print()
print("price for cash discount =",prcd)
print ("your final Price ",pacd)
Privew Of Output Of Code.
All the credit for code goes to Chakradhar Chandrakar ( XI COM 'A', AWS)
p = input ("enter name of product")
r = int(input("enter price"))
q = int(input ("quanty of product"))
t = r * q
td = int(input ("enter the percent trade discount"))
tdp = t / 100 * td
patd = t - tdp
pcashd = int(input("enter the pecent of cash discount"))
cgst = int(input("enter the rate of cgst"))
sgst = int(input("enter the rate of sgst"))
gst = cgst + sgst
pgst = patd / 100 * gst
fp = patd + pgst
prcd = fp / 100 * pcashd
pacd = fp - prcd
print ()
print()
print("purchase of total good =",t)
print()
print("trade discount=",tdp)
print()
print("your price after trade discount=",patd)
print()
print("total tax price=",pgst)
print()
print("price for cash discount =",prcd)
print ("your final Price ",pacd)
In this you have to input
- Product name
- Product price
- Quantity of product
- Percent of Trade discount
- Cgst tax
- Sgst tax
- Percent of Cash discount
Output you will get
- Purchase Price of total good.
- Price for trade discount.
- Your Price after trade discount.
- Total Tax Price.
- Price for Cash discount.
- Your Final Price
Privew Of Output Of Code.
All the credit for code goes to Chakradhar Chandrakar ( XI COM 'A', AWS)
Note - For IGST you have to break it into two part.
For example if IGST is 15% then you will put 10% in cgst and 5% in sgst.
For example if IGST is 15% then you will put 10% in cgst and 5% in sgst.

No comments:
Post a Comment