How swathiajay/smartbus-python-project works
SmartBus is a console ticket-booking application. A user chooses to view buses, book a ticket, or cancel one; booking proceeds through bus and seat selection, passenger details, fare calculation, simulated payment, and ticket display. Bookings are held in an in-memory list, not a persistent database. The README documents the feature workflow; the sampled source shows booking orchestration and cancellation, but some function bodies and call details were omitted.
Main entry points: SmartBus.py Console Flow
Components 12
Console Interaction
- Console Flow
SmartBus.py - Main Menu
SmartBus.py
Booking Workflow
- Bus Information
SmartBus.py - Bus Selection
SmartBus.py - Seat Management
SmartBus.py - Passenger Details
SmartBus.py - Fare Calculation
SmartBus.py - Payment
SmartBus.py - Ticket Display
SmartBus.py
Booking Records
- Booking Records
SmartBus.py - Cancellation
SmartBus.py
Other components
- User
Connections 12
- User → Console Flow: uses
README.md - Console Flow → Main Menu: displays
README.md - Console Flow → Bus Information: requests buses
SmartBus.py - Console Flow → Bus Selection: selects bus
SmartBus.py - Console Flow → Seat Management: selects seats
SmartBus.py - Console Flow → Passenger Details: collects details
SmartBus.py - Console Flow → Fare Calculation: calculates fare
SmartBus.py - Console Flow → Booking Records: creates booking
SmartBus.py - Console Flow → Payment: collects payment
README.md - Console Flow → Ticket Display: displays ticket
SmartBus.py - Console Flow → Cancellation: cancels ticket
SmartBus.py - Cancellation → Booking Records: reads and updates
SmartBus.py