Programming Examples

Python program to calculate GST Goods and Service Tax


Program to calculate GST
Solution

item=input("Enter item name :")
sp_cost=float(input("How much is selling price of item"))
gst_rate=float(input("What is GST rate %"))
cgst=sp_cost*((gst_rate/2)/100)
sgst=cgst
amt=sp_cost+cgst*sgst
print("CGST (@",(gst_rate/2),"%) :",(cgst))
print("SGST(@",(gst_rate/2),"%) :",(sgst))
print("Amount payable: ",(amt))
Output/ Explanation:

Enter item name :mobile

How much is selling price of item12600

What is GST rate %18

CGST (@ 9.0 %) : 1134.0

SGST(@ 9.0 %) : 1134.0

Amount payable:  1298556.0

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad