Skip to content

A console-based java application for allocation of taxi to the customers.

Notifications You must be signed in to change notification settings

Mohanaprasath055/Taxi_Reservation_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TAXI RESERVATION SYSTEM

This is java - based application that dynamically allocates taxis for the customers. Consistently maintains and updates the current position of the taxi and the earnings of each taxis.


Technologies Used:

  • Java
  • Object Oriented Programming
  • Data Structures
  • GitHub

System Design:

Main.java: Handles user input and provides options for booking taxis, viewing details, or exiting the system.
BookTaxi.java: Manages taxi allocation and booking history.
Taxi.java: Represents individual taxis with attributes like location, earnings, and booking details.

Special features:

Dyanmmic Allocation:

A list of taxis ensures scalability, with the system dynamically creating and assigning taxis up to a predefined limit (e.g., 4 taxis).

Real - time Updates:

Each taxi's status, including its current position, earnings, and booking history, is tracked and updated in real-time.

User Interaction:

  • Users can book a taxi by specifying pickup and drop locations (as alphabetic points) and the desired pickup time.
  • Customers are provided with a confirmation that includes the allocated taxi number or a notification if no taxis are available.
  • The system allows users to view a detailed history of bookings and taxi performance, including earnings and current positions.

Taxi Allocation Mechanism:

  1. Initially there are 6 locations(A,B,C,D,E).
  2. The distance between each point is 15kms.
  3. It takes 60 minutes to travel from one locations to another.
  4. Each Taxi charges Rs.100 minimum for the first 5kms and Rs.10 for each subsequent kilometers.
  5. The taxi nearest to the location of the customer is allocated.
  6. If two or more taxi is present at the same distance the taxi with the least earnings is allocated.
  7. If there is no taxi available, booking will be rejected.

About

A console-based java application for allocation of taxi to the customers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages