Skip to content

jayanti1008/Smart_Metro_Station_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš‡ Smart Metro Station Simulator

A C-based console application that simulates the functioning of a metro station using fundamental data structures such as Queue, Stack, and Priority Queue. The project models real-life metro operations including passenger management, ticket booking, train arrival timings, and boarding simulation.


✨ Features

  • Passenger entry with automatic token generation
  • Priority-based passenger handling (VIP / Normal)
  • Ticket booking system
  • Ticket cancellation with undo functionality
  • Train arrival time simulation with AM/PM format
  • Displays multiple upcoming trains
  • Supports Purple, Green, and Yellow metro lines
  • Boarding simulation using queue logic

🧠 Data Structures Used

  • Queue (Priority Queue) – for passenger management
  • Stack – for undoing ticket cancellations
  • Arrays – for storing metro stations
  • Structures – for passenger details

πŸš‰ Metro Lines Covered

  • Purple Line
  • Green Line
  • Yellow Line

Each metro line consists of predefined stations.
Train arrival time is calculated based on the current time and station distance.


πŸ“ Project Structure

METRO_SIMULATOR/ β”‚ β”œβ”€β”€ smart_metro_station_simulator.c β”œβ”€β”€ READ_ME.md └── .gitignore


🎯 Learning Outcomes

  • Practical understanding of Queue, Stack, and Priority Queue
  • Implementation of real-world simulation using C
  • Improved problem-solving and logical thinking
  • Hands-on experience with Git and GitHub

πŸ‘©β€πŸ’» Author

JAYANTI
Second-Year Information Science and Engineering Student


πŸš€ Future Enhancements

  • Train capacity limitation
  • Fare calculation module
  • Passenger statistics
  • GUI-based metro simulation

About

A C-based Smart Metro Station Simulator that models passenger management, ticket operations, priority-based boarding, and train arrival timings using core data structures like Queue, Stack, and Priority Queue.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages