In the airline company that you are working as an intern, you became famous by your success because the software tool (HW#1) that you have developed which reads the world cities database and successfully

computer science

Description

In the airline company that you are working as an intern, you became famous by your success because the software tool (HW#1) that you have developed which reads the world cities database and successfully returns sorted list of nearest cities in a given range was very successful and you got compliments for your work done !


Therefore, another department of this airline company comes to you and asks that they also have a world cities database file and tell you that their upper management frequently asks them to prepare reports about populations of cities by querying from this database for the given countries with their names or sometimes only a part of the country name is given. To prepare these reports, they tell you that they manually look through the list one by one which results in office work of day and night, long overtimes and they sometimes can not even go to their home for sleeping. 


You tell them, “don’t worry, the software tool that I will develop will generate your reports in less than one second. Let’s get to work”. They are too happy and told you that your program is simply required to;


 read their input World Cities Database File, 

 search the city records which belong to the countries queried by a given search string, 

 output those cities which are SORTED alphabetically in ASCENDING order by the City Names along with their corresponding information to an output file which is exactly in the same format with the input World Cities Database file, 


Related Questions in computer science category