TICKET MANAGEMENT SYSTEM
print(" TICKET MANAGEMENT SYSTEM")
print("-------------------------------------------------")
x = str(input("enter the starting point : "))
y = str(input("enter the destination point : "))
z = int(input("enter the no of adults : "))
w = int(input("enter the no of kids :"))
v = int(input("enter the no of senior citizens : "))
print("--------------------------------------------------")
busfair = 1000 #for adults
busfair1 = 750 #for kids
busfair2 = 500 #senior citizens
totalamount = z*1000+w*750+v*500
print("PAYMENT OPTION : ")
print(" 1. online")
print(" 2. cash")
e = passwordfortransaction = 1234
a = int(input("enter the mode of operation : "))
if a==1:
b =str(input("enter the mobile number : "))
print("total amount : ", totalamount)
c=int(input("enter the password for transaction :"))
if c==1234:
print("the password is correct")
print("payment received")
else:
print("the password is not correct")
print("payment failed!")
print("--------------------------------------------------")
print(" Thank you, visit again !!!!!")
else:
print("total amount is : ", totalamount)
print("cash received!")
print(" Thank you, visit again!!!!!")
OUTPUT:
TICKET MANAGEMENT SYSTEM
-------------------------------------------------
enter the starting point : 1
enter the destination point : 1
enter the no of adults : 1
enter the no of kids :1
enter the no of senior citizens : 1
--------------------------------------------------
PAYMENT OPTION :
1. online
2. cash
enter the mode of operation : 1
enter the mobile number : 1234567890
total amount : 2250
enter the password for transaction :2
the password is not correct
payment failed!
--------------------------------------------------
Thank you, visit again !!!!!