Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help :( ..... please write full code, thanks! Assignment In this projoct, the learners should create a clicui-server system that ecetanges information about flights

please help :( ..... please write full code, thanks! image text in transcribed
image text in transcribed
Assignment In this projoct, the learners should create a clicui-server system that ecetanges information about flights at a certain airport. The emphasis in this projoct is on sticatisencr architecture. nxtwork communication, multithreading. APL. and unolying sood ooding practices. The system should consist of two Python seripts (the server and the clicent. The server should retrieve data of a selected airport from aviationstack com via the proper APL, extract the required information from the retrieved data, manage connoctioes with meliple simultaneous clients, and respond to client requests. The Server Script The server should start by asking abeut the target airport (1CAO code) and retrieve the information about flights at the specifiod airpoet over an AP1. Then the server should be 1 ready to handle the elients with their roquests. It should exiract the nocdod 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 reconds of flights at the rpecified airport (use avaiticnstack.cota). 3. Stote the retrieved data in a JSON file called "eroip_ID joce" (for testing and evaluation purposes) 4. Wait for clicnts' requests to conncet (shovid aceept at leact throe connoctions simulaneously). a. Accept the connection. b. Store the eliest's name and display it on the terminal. 5. Wait for clients' reqoests, search the retrieved data for manching, and send a reply with the matching information. a. All arrived flights (return flight 1ATA code, depurture aimport name, amival time, arrival terminal number, and arrival gate). b. Al delayed Nights (rotum figh IATA codc, departure airport, eriginal departure time, the estimated time of arrivalh, armival terminal, delay, and arrival gate. c. All nights from a specific aimpent using the airport ICAO cede fretum flight WTA code, departure airport, original departure time, estimated arrival time, departure gate, arrival gate, and stafus). 4. Details of a particular flight (return flight 1ATA code; depurture airport, gate, and terminal; arrival airpont, gate, and terminal; stutuk; schetuled depurture time; and schodulod amival time). The server should display the following details clearly on the server sctoen: 1. The aceeptance of a new conncetion with the clicut's name 2. The requester name; type of request, and request parameterk. 3. The disconnection of a client with its marne. 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. 2 The client program should conduct the following tasks: 1. Establish a connection with the server and send the client's 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

Step: 3

blur-text-image

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions