Similar to our previous assignment of counting votes . Lets do one more quick assignment of Aiport counting. This is a real world data. You can download the dat file from : Aiport.dat.
Problem Statement : We have been given the Airport data of all the countries. We have to count the number of airports each country has.
Note : It is a CSV file. Open .dat file using notepad and you will be able to see the data.
Solution :
We have to follow the same design steps as mentioned in my previous blog.
Please refer below snippet for solving this problem.
In my next post we will study to draw an histogram.
Problem Statement : We have been given the Airport data of all the countries. We have to count the number of airports each country has.
Note : It is a CSV file. Open .dat file using notepad and you will be able to see the data.
Solution :
We have to follow the same design steps as mentioned in my previous blog.
Please refer below snippet for solving this problem.
Results :
In my next post we will study to draw an histogram.
No comments:
Post a Comment