Monday, July 26, 2010

BMTC Bus Ticket Cost Calculation

In a recent travel through BMTC bus to my office, I was involved in a big fight between another software engineer and the bus conductor on - how the ticket price was calculated? The software engineer did not know Kannada and the bus conductor could explain in the English. I served as the translator in that heated argument :)... here is the info how the ticket price is calculated.

Note: The calculation is performed by the ticketing machine given to the bus conductor so the conductor cannot cheat you!

BMTC divides the routes into stages. Following is the 'Fare Table' of BMTC Bus No 45. You can get the 'Fare Table' for your route from the conductor....Please Ask!













FARE TABLE-010
StageNameFare
1KAMAKYA0.00
2KATTRIGUPPE5.00
3HOSAKERE HALLI9.00
4BANK COLONY10.00
5GANESH BHAVAN13.00
6CHAMARAJPET15.00
7GOODS ROAD16.00
8KBS16.00


Now the stage you climb the bus is the Stage 1 for you and of course the stage you get off is the last stage for you. Lets see the following examples of fare calculation with the previous assumption.

Fare from

  • KAMAKYA to KBS = Stage 8 - Stage 0 = 8 Stages crossed = Rs 16
  • BANK COLONY to GOODS Road = Stage 7 - Stage 4 = 3 Stages Crossed = Rs 9
  • GOODS ROAD to KBS = Stage 8 - Stage 7 = 1 Stage crossed = Rs 5
Algorithmically,


List stageList=[KAMKYA...KBS]
List fareList=[0..16]
int start= stageList.indexOf[YOUR START STAGE]
int end = stageList.indexOf[YOUR END STAGE]
Fare= fareList[end-start]

Hope the calculation is clear!

4 comments:

G i G said...

kool....bejaan sati confusion aagittu edu...eega clear ...thanks...for the post

G i G said...

kool....bejaan sati confusion aagittu edu...eega clear ...thanks...for the post

Elite Palm said...

your site is veru informative thank you bus ticketing machine
http://handheldforbillingdevices.blogspot.in/ https://twitter.com/#!/ElitePalm Elite Palm™
http://www.facebook.com/hand.held.3 http://www.facebook.com/pages/Elite-Palm-It-Solutions-PVT-LTD/300469306713237
http://www.squidoo.com/bus-ticketing-machine#module160392208
Elite palm IT solutions Pvt. Ltd is ISO 9001:2008 certified organization.
We deals in It services, Security products and Hand Held Devises.
Our Product Range Include Hand Held Devises,daily collection machines,
Micro Finance Spot Billing Machine,Pay and parking machines,Milk Collection billing machines,
Production distribution billing Machines , Restaurant sales billing, Electricity
Billing Machine, Toll Both Machines,Petrol Billing machines,Cable Billing
Machine And many Types of Billing Machine.

Elite Palm said...

your site is very informative thank you
camera
bus ticketing machine
http://epsecure.blogspot.in/
http://handheldforbillingdevices.blogspot.in/
http://www.facebook.com/pages/Security-cameras/460875313945604?ref=hl
http://www.facebook.com/profile.php?id=100004209247998
https://twitter.com/Epsecure
https://twitter.com/#!/ElitePalm Elite Palm™
http://www.squidoo.com/bus-ticketing-machine#module160392208