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 stops and a Go button.
ii When the Go button is clicked, clear previous results, and read the JSON data.
a Add an 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 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: EdinburghNonstop?GolFlights from seattle to EdinburghS from Delta with vtopsS from lambda ir Fiatuce with stops from Air France with stopsStart location: seattle quad End location: Edinburgh quad Nonstop? Go
Flights from seattle to Edinburgh
$ from Air France with stops
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
