Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve it in details with API and json file please use python. The server should start by asking about the target airport ( ICAO

please solve it in details with API and json file please use python. The server should start by asking about the target airport (ICAO code) and retrieve the
information about flights at the specified airport over an API. Then the server should be
2
ready to handle the clients with their requests. It should extract the needed information
from the API response and send it to the client.
The server should conduct the following tasks:
1. Once the server starts up, it should ask the user to enter the airport code (arr_icao).
2. Uses the proper API to retrieve 100 records of flights at the specified airport (use
avaitionstack.com).
3. Store the retrieved data in a JSON file called "group_ID.json" (for testing and
evaluation purposes)
4. Wait for clients' requests to connect (should accept at least three connections
simultaneously).
a. Accept the connection.
b. Store the clients name and display it on the terminal.
5. Wait for clients requests, search the retrieved data for matching, and send a reply
with the matching information.
a. All arrived flights (return flight IATA code, departure airport name, arrival
time, arrival terminal number, and arrival gate).
b. All delayed flights (return flight IATA code, departure airport, original
departure time, the estimated time of arrival), arrival terminal, delay, and
arrival gate.
c. All flights from a specific airport using the airport ICAO code (return flight
IATA code, departure airport, original departure time, estimated arrival
time, departure gate, arrival gate, and status).
d. Details of a particular flight (return flight IATA code; departure airport,
gate, and terminal; arrival airport, gate, and terminal; status; scheduled
departure time; and scheduled arrival time).
The server should display the following details clearly on the server screen:
1. The acceptance of a new connection with the clients name.
2. The requester name, type of request, and request parameters.
3. The disconnection of a client with its name.
The Client Script
The client script should connect to the server and stay on until the user selects the Quit
option. The client should present multiple options for the user; different request types and
quit options. The client should send different types of requests, and receive and display the
responses. The client should be user-friendly and display the options and results neatly.
The client should stay connected and ready to send new requests until the user chooses to
quit.
3
The client program should conduct the following tasks:
1. Establish a connection with the server and send the clients username to identify
itself.
2. Sends one of the following four request types:
a. Arrived flights: the client should display the flight code (IATA), departure
airport, arrival time, arrival terminal, and arrival gate.
b. Delayed flights: the client should display the flight code (IATA), departure
airport, departure time, estimated arrival time, delay, terminal, and gate.
c. All flights coming from a specific city: (the client should display flight
code (IATA), departure airport, departure time, estimated arrival time,
departure gate, arrival gate, and status.
d. Details of a particular flight: the client should display flight code (IATA),
departure (airport, gate, and terminal), arrival (airport, gate, and terminal),
status, scheduled departure time, and scheduled arrival time.
3. Close the connection and leave when the user selects the Quit option.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

We have learnt how to account for VAT on bad debts.?

Answered: 1 week ago