Coding round in which I was asked to write the code to query bart.gov api to get the list of scheduled trains to depart from Montgomery Street BART station & display them in kind of below format for the next 10 trains scheduled to depart from the given time of query.
Warning : Don't assume that these companies are taking interviews to hire.
Example output:
--------------------------------------------------
Montgomery St. 04:36:04 PM PDT
--------------------------------------------------
2 min Dublin/Pleasanton
4 min Daly City
5 min Millbrae
5 min Pittsburg/Bay Point
7 min Fremont
9 min Pleasant Hill
10 min SF Airport
12 min Daly City
12 min Richmond
14 min Millbrae
Your output does not need to match this, this is just an example.
If you have better ideas of how to display the data, please do let me know!
Solution for this I gave as given in attached file, though that was not accepted saying -
Instance variables used unnecessarily
exception handling not done properly
No modularization and abstraction
So you do your coding or changes accordingly in the given code here.
Warning : Don't assume that these companies are taking interviews to hire.
Example output:
--------------------------------------------------
Montgomery St. 04:36:04 PM PDT
--------------------------------------------------
2 min Dublin/Pleasanton
4 min Daly City
5 min Millbrae
5 min Pittsburg/Bay Point
7 min Fremont
9 min Pleasant Hill
10 min SF Airport
12 min Daly City
12 min Richmond
14 min Millbrae
Your output does not need to match this, this is just an example.
If you have better ideas of how to display the data, please do let me know!
Solution for this I gave as given in attached file, though that was not accepted saying -
Instance variables used unnecessarily
exception handling not done properly
No modularization and abstraction
So you do your coding or changes accordingly in the given code here.

delphixdata.java | |
File Size: | 6 kb |
File Type: | java |