Question: Write ONLY the JAVASCRIPT code to develop a web application to display a list of possible flight prices and carriers using JSON data. i .

Write ONLY the JAVASCRIPT code to develop a web application to display a list of possible flight prices and carriers using JSON data.
i. The page contains two text boxes where the user can specify the start location and end location, a checkbox that they can check if they want to only see nonstop flights (flights with 0 stops) and a "Go!" button.
ii. When the "Go!" button is clicked, clear previous results, and read the JSON data.
a. Add an hl to the results div containing the text "Flights from" and then the start and destination locations.
b. Turn each flight's data into a paragraph in the results div.
c. In each paragraph, write the price of the ticket (with a " $ ") followed by the word "from", the carrier's name, and then the word "with", the number of stops, and the word "stops". If the flight has a price below 1000 display its row in bold.
iii. The JSON data returned has a list of flights associated with it. The list of flights contains lists that each contains a price, a carrier, and the number of stops as below:Start location: seattleEnd location: EdinburghNon-stop?GolFlights from seattle to EdinburghS812 from Delta with 2 vtopsS1020 from lambda ir Fiatuce with 0 stops51190 from Air France with 3 stopsStart location: seattle quad End location: Edinburgh quad Non-stop? Go!
Flights from seattle to Edinburgh
$1020 from Air France with 0 stops
Write ONLY the JAVASCRIPT code to develop a web

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!