Question: C# Programming Language only Real-Time Airplane Statistics via JSON Create a Console application that uses real-time data from the Internet to display a histogram of
C# Programming Language only
Real-Time Airplane Statistics via JSON
Create a Console application that uses real-time data from the Internet to display a histogram of all Boeing and Airbus airliners currently in the sky by plane type.
1.) The URL of the feed you need to use for this assignment is: https://public-api.adsbexchange.com/VirtualRadar/AircraftList.json?fTypQN= (Links to an external site.)Links to an external site.
Start by pasting that URL into http://jsonlint.com (Links to an external site.)Links to an external site.and examining the results. Make sure you understand the organization of the JSON data from that feed. What are the fields in the top-level object?
2.) Create a new Visual Studio solution that reads in the data from that URL and displays it on your screen.
3.) Modify your program to use String parsing functions that find the "Type:" field in each line of the JSON file and extracts the 4 letter type code for each airplane into a List. Display the list.
4.) Add the Histogram code from the Modules to your program. Use it to create a histogram from your airplane "Type" list. Run your program.
5.) Let's assume we are only interested in Boeing and Airbus airliners. Boeing planes have type codes that start with "B7" and Airbus planes have type codes that start with "A3". Have your program discard other planes. Re-run your program. We have fewer bars, but it is still too many.
6.) Let's now assume that we don't care about the sub-models of Boeing and Airbus airplanes. That means that we need to convert the last digit of the type field into a '7' (if it is a Boeing plane) or a '0' (if it is an Airbus plane). Have you program change the type value accordingly before adding the type to your List. This should reduce the number of Histogram bars to a manageable number.
7.) Call the Histogram's Sort() function to sort the bars so that the most common plane type is at the top and the least common is at the bottom.
8.) Get this same program working using JSON.net parsing instead of String parsing.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
