Author |
Finally! Free and Fullfledged gprs using Airtel Prepaid(India) |
samyakram Joined: Oct 01, 2006 Posts: 1 PM |
So here is it
I. Problem description
Bluebay is a beautiful beach city where the most preferred means of commuting
is public transportation. Turtle Motor Corporation operates passenger buses in
the city of Bluebay. TMC runs a dozen echo-friendly buses across the city
almost 20 hours a day. Recently they found out that not all their routes are
making profit; they want to find out which are those routes and why.
People of Bluebay are very honest. They put in the right amount of money in the
ticket dispenser and get off at the correct stop.
Tickets are valued for the number of stops a passenger can travel with them. If
a passenger takes a ticket for 2-stop distance, he/she will get off at the
second stop from the boarding stop. Every passenger who uses TMC knows the
ticket rates and the places very well. The people of Bluebay are very prudent;
they don't over spend.
TMC has all the ticket data of the past six years with them. They want to
analyse the data. To start with, they want to build a program to find out how
many passengers used the bus between two given stops on a given trip. That's
the problem here to solve.
If you find that the description above does not cover all aspects of the
problem, you can make required assumptions. You need to document those
assumptions, if any.
Sample data is given in the file sample_data.txt. You should use this file as
the input for the program you write.
II. Sample Data and the Format Description
See the file sample_data.txt provided.
This is a Comma Separated Values (CSV) file. This file contains the ticket data
of one trip from stop-0 to stop-5. The first "column" indicates the Stop Number
and subsequent values in the row indicate the number of tickets dispensed for
1-stop distance, 2-stop distance, etc..
For example, consider the first line in the sample data file:
0,5,0,4,8,2
This indicates that:
The stop number is: 0 (the starting point).
Total tickets dispensed for 1-stop distance at stop 0 is: 5
Total tickets dispensed for 2-stop distance at stop 0 is: 0
Total tickets dispensed for 3-stop distance at stop 0 is: 4
Total tickets dispensed for 4-stop distance at stop 0 is: 8
Total tickets dispensed for 5-stop distance at stop 0 is: 2
The value "N" in rows indicates "Null". This means there is no possible value
for this field.
III. Expected Output
Here it is assumed that the program is tmc_pcount. To find out the number of
passengers traveled between stop 0 and stop 1:
/''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''\\
| $ ./tmc_pcount 0 1 |
| Total number of passengers travelled between stop 0 and stop 1 are: 19 |
| |
| $ ./tmc_pcount 1 3 |
| Total number of passengers travelled between stop 1 and stop 3 are: 35 |
\\________________________________________________________________________/
Sample data::
0,5,0,4,8,2
1,1,6,3,2,N
2,0,5,4,N,N
3,2,2,N,N,N
4,4,N,N,N,N
5,N,N,N,N,N
Plz PM me if any one can do it |
|
aatuif Joined: Sep 04, 2006 Posts: > 500 From: KASHMIR PM, WWW
|
You are a student of what...
|
dheeraj1 Joined: Nov 11, 2004 Posts: 6 PM |
@samyakram is that the project? And what help u want? don't expect us to make that project for you we can only help if u stuck any where. |
cowboy4900 Joined: Jan 13, 2007 Posts: 1 From: Dehradun PM, WWW
|
hey that program can be done easily in java....and as dheeraj said....dont expect anyone to make a complete project for you...many people are here to help u if u need it... |
se7an Joined: Dec 24, 2005 Posts: 8 From: TN PM |
guys, we got a problem, free GPRS is not working. it says forbitten. it worked last night. but now it says the remote computer refused. please post you expirence. |
cowboy4900 Joined: Jan 13, 2007 Posts: 1 From: Dehradun PM, WWW
|
Hey 7 thats happening with me since two days i can also only open google and proxy refusing connection for the rest too... |
fun2sh Joined: May 26, 2006 Posts: 0 PM |
nop is not workin for me too on pc. its workin fine on mobile though |
aatuif Joined: Sep 04, 2006 Posts: > 500 From: KASHMIR PM, WWW
|
ek ek karke sab band ho raha hai...
|
himadri_p Joined: Jun 17, 2006 Posts: 2 PM |
[Erased by moderator GOwin] |
aatuif Joined: Sep 04, 2006 Posts: > 500 From: KASHMIR PM, WWW
|
Quote:
|
On 2007-06-12 07:00:10, himadri_p wrote:
!@###########################################
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
HEY GOOD NEWS FOR ALL
THERE IS EASY INTERNET EARNINGS FOR JUST GO TO
http://adbux.org/?r=himadrisharma
EASY EARNINGS- EASY EARNINGS - EASY.
|
| Yeh paintra bohot purana hai...
|
lsp00f3rl Joined: Mar 14, 2007 Posts: 3 PM |
 |
aatuif Joined: Sep 04, 2006 Posts: > 500 From: KASHMIR PM, WWW
|
Quote:
|
On 2007-06-12 07:00:10, himadri_p wrote:
!@###########################################
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
HEY GOOD NEWS FOR ALL
THERE IS EASY INTERNET EARNINGS FOR JUST GO TO
http://adbux.org/?r=himadrisharma
EASY EARNINGS- EASY EARNINGS - EASY.
|
| post this crap in some freaky forum, not here...
|
cowboy4900 Joined: Jan 13, 2007 Posts: 1 From: Dehradun PM, WWW
|
!@###########################################
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
HEY GOOD NEWS FOR ALL
THERE IS EASY INTERNET EARNINGS FOR JUST GO TO
http://adbux.org/?r=himadrisharma
EASY EARNINGS- EASY EARNINGS - EASY.
ban this user!!! |
zolo Joined: Jun 21, 2006 Posts: 68 From: HeLL PM |
On 2007-06-12 07:00:10, himadri_p wrote:
!@###########################################
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
HEY GOOD NEWS FOR ALL
THERE IS EASY INTERNET EARNINGS FOR JUST GO TO
http://adbux.org/?r=himadrisharma
EASY EARNINGS- EASY EARNINGS - EASY.
LOL 
[ This Message was edited by: zolo on 2007-06-12 09:47 ] |
AlanDS Joined: Dec 29, 2005 Posts: 43 From: Karnataka, India PM |
@himadri_p
This thread isn't created for sharing affliate links. So please avoid this in future. |
|