CS_PROJECT_REPORT- Arnav
CS_PROJECT_REPORT- Arnav
Arnav Bhardwaj
INDEX
1. PROBLEM DEFINITION
2. PROBLEM ANALYSIS
3. HARDWARE AND SOFTWARE REQUIREMENT
4. FUTURE ENHANCEMENT
5. SOURCE CODE
6. OUTPUT
7. BIBLIOGRAPHY
PROBLEM DEFINITION
2. Delete a Booking
Personal Information
Travel Details
Personal Preferences
1. Boutique Hotels
2. Resorts
3. 7-Star Hotels
4. 5-Star Hotels
5. 4-Star Hotels
Conclusion
OS - Microsoft Windows 10
Here are some future enhancement ideas for the flight booking
management system:
import mysql.connector
print('''----------------------------------------------------------
WELCOME TO EPIC TRAVEL AGENCY
------------------------------------------------------------''')
mydb = mysql.connector.connect(host = 'localhost',user = 'root',password = 'Flat@115')
mycursor = mydb.cursor()
mycursor.execute('create database if not exists travels')
mycursor.execute('use travels')
mycursor.execute('''create table if not exists destination(name varchar(50) not null, email
varchar(80) unique,location1 varchar(30) not null,location2 varchar(30) not null,language
varchar(15),persons integer(50), cost integer(50))''')
if choice == '1':
print('For details about roadways contact us on : 9042538884')
elif choice == '2':
print('For details about Railways contact us on : 9045248883')
elif choice == '3':
print('For details about Airways contact us on : 7299007882')
elif choice == '4':
print('For deatils about Waterways contact us on : 7299228773')
else:
print('Invalid Choice, PLEASE Try Again')
print('''
''')
return roomcost
roomcost = accomodation_cost()
print('''
''')
return roomcost
print("-" * 40)
else:
print(' ')
def search_destinations():
location = input("Enter the Destination to Search : ")
mycursor.execute(f"SELECT * FROM destination where location2='{location}'")
results = mycursor.fetchall()
if results:
print('MATCHING DESTINATIONS')
for row in results:
print(f"name:{row[0]}")
print(f"email:{row[1]}")
print(f"location1:{row[2]}")
print(f"location2:{row[3]}")
print(f"language:{row[4]}")
print(f"persons:{row[5]}")
print("-" * 40)
else:
print('NO MATCHING DESTINATION FOUND ')
if choice == 1:
while True:
print("Press 1 - Add a New Destination")
print("Press 2 - Display All Destinations")
print("Press 3 - Delete a Destination")
print("Press 4 - Search by Destination")
print("Press 5- Exit")
ch = int(input("Enter your choice : "))
if ch == 1:
add_destination()
transport()
elif ch == 2:
view_destinations()
elif ch == 3:
delete_destinations()
elif ch == 4:
search_destinations()
else:
break
SAMPLE OUTPUT
BIBLIOGRAPHY