Thursday, 18 July 2019

Source Code for Invoice Price Calculator.

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)


In this you have to input


  1. Product name 
  2. Product price 
  3. Quantity of product
  4. Percent of Trade discount
  5. Cgst  tax 
  6. Sgst tax
  7. Percent of Cash discount 

Output you will get


  1. Purchase Price of total good. 
  2. Price for trade discount. 
  3. Your Price after trade discount. 
  4. Total Tax Price. 
  5. Price for Cash discount. 
  6. 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. 


Please input (comment) your problem we will print (post) your solution in our website. 

No comments:

Post a Comment

Fin@ll project of Ip .. https://drive.google.com/file/d/15-IQZAy3LxFMeweo9SZAK91M4y1nhw4x/view?usp=drivesdk