Ip Proj - Qs
Ip Proj - Qs
Answer:
The project simulates a flight booking system where users can sign up or log in, select flights, book seats, provide passenger
details, process a simulated payment, and receive a receipt. Data is stored in CSV files.
8. What are f-strings and how are they used in your project?
Answer:
F-strings allow embedding expressions inside string literals. For example, f"Passenger {i + 1}" dynamically inserts the passenger
number into the string, making the code more readable and concise.
def: Used to define functions, creating reusable blocks of code for tasks like logging in or booking seats.
return: Exits a function and sends a value back to the caller, enabling functions to communicate results.
break: Exits a loop immediately when a certain condition is met, which is useful during input validation to stop
unnecessary iterations.
10. What potential improvements or additional features could be added to your project?
Answer:
Future improvements could include better error handling, password encryption for enhanced security, a graphical user
interface (GUI), integration of real-time flight data, and detailed analytics on user bookings.
14. Which libraries did you use, and what are their purposes?
15. How does the system ensure that seats are not double-booked?
It checks the seat availability in the booking database before confirming reservations.
17. How does the system validate user inputs such as email, phone number, and payment details?
It checks email format (@ and .com), ensures phone numbers are 10 digits, and validates card details.
19. Why did you choose CSV/Excel for data storage instead of a database like MySQL?
CSV/Excel is simpler to use, requires no database server, and is easy to manipulate.
21. How does the system retrieve and display available flights?
It filters flight data based on user-entered departure and arrival cities.
22. What methods did you use for data visualization, and why?
Matplotlib is used to create bar charts showing flight availability, making data easy to interpret.
26. If given more time, what additional features would you implement?
Real-time seat selection, automated email confirmations, and airline API integration.
27. How would you scale this project for a real-world airline system?
Using SQL databases, cloud storage, and secure API connections.
28. What security measures would you implement to make the system more robust?
Encrypt passwords, implement secure payment processing, and validate user inputs properly.
29. What is the significance of using the DateTime module in your project?
It is used to manage and format date and time for booking, receipt generation, and payment validation.
34. How does the system calculate the total fare for a booking?
It multiplies the ticket price by the number of selected seats and displays the total amount.
38. How can this project be adapted for different transportation systems like trains or buses?
By modifying the database to store train/bus details and adjusting the booking logic accordingly.
40. What improvements would you make to enhance the user experience?
Adding a graphical interface, real-time seat selection, and integrating email notifications.
42. How does your project manage multiple bookings under the same user?
It allows a user to book multiple seats and saves each booking under their user ID in the database.
43. What are some real-world challenges in flight booking that your system addresses?
Avoiding double bookings, providing clear receipts, and simplifying the booking process for users.
44. What challenges did you face while linking the Python code with the Excel database?
Handling data consistency, ensuring real-time updates, and avoiding overwriting existing data.
48. What would happen if the user selects a seat that is already booked?
The system alerts the user and asks them to choose another available seat.