(Solved) : References Mailings Review View H Elp Tell Want Enable Editing Om Internet Contain Viruses Q42736019 . . .

out References Mailings Review View H elp Tell me what you want to do Enable Editing om the Internet can contain viruses. Unlprolog languageout References Mailings Review View H elp Tell me what you want to do Enable Editing om the Internet can contain viruses. Unless you need to edit it’s safer to stay in Protected View problem checking this device license status. Please sign in with the Office 365 account this device was act Sign In Note -All the following questions should be solved and put into a MS word file. You can put prolog code as text and outputs as screenshot. Question 1: Problem Description: You have to write a program that will act like a travel agent. For simplicity we assume all the flights are direct. The expert system should able to answer following queries- (3 Marks) 1. Can show details of a particular flight (i.e. starting/ending date/time, airline, destination). 2. Can check – is there any flight available or not in a particular date for a particular route? 3. Can find the best flight based on price for a particular route. 4. Can find the best flight based on time (for simplicity assume all times are in GMT) for a particular route. 5. Find the best flight for a tourist – assume a tourist is looking for best price within a reasonable flight duration Question 2: Count the frequency of an item in a simple list Input (a, b, c, 3, 4, a), a. Output 2 (1 Mark) Question 3: Write a prolog program that will do the sum of non-duplicate numbers in a given list. Input (4,5, 3, 2, 2, 1). Output 13 (i.e. 4+5++3+1) (1 Marks) Bonus Question: Write a prolog program that will do the sum of unique numbers in a given list. Input (4,5, 3, 2, 2, 1). Output 15 (i.e. 4+5++3+2+1) (1 Mark) Show transcribed image text out References Mailings Review View H elp Tell me what you want to do Enable Editing om the Internet can contain viruses. Unless you need to edit it’s safer to stay in Protected View problem checking this device license status. Please sign in with the Office 365 account this device was act Sign In Note -All the following questions should be solved and put into a MS word file. You can put prolog code as text and outputs as screenshot. Question 1: Problem Description: You have to write a program that will act like a travel agent. For simplicity we assume all the flights are direct. The expert system should able to answer following queries- (3 Marks) 1. Can show details of a particular flight (i.e. starting/ending date/time, airline, destination). 2. Can check – is there any flight available or not in a particular date for a particular route? 3. Can find the best flight based on price for a particular route. 4. Can find the best flight based on time (for simplicity assume all times are in GMT) for a particular route. 5. Find the best flight for a tourist – assume a tourist is looking for best price within a reasonable flight duration Question 2: Count the frequency of an item in a simple list Input (a, b, c, 3, 4, a), a. Output 2 (1 Mark) Question 3: Write a prolog program that will do the sum of non-duplicate numbers in a given list. Input (4,5, 3, 2, 2, 1). Output 13 (i.e. 4+5++3+1) (1 Marks) Bonus Question: Write a prolog program that will do the sum of unique numbers in a given list. Input (4,5, 3, 2, 2, 1). Output 15 (i.e. 4+5++3+2+1) (1 Mark)

Expert Answer


Answer to out References Mailings Review View H elp Tell me what you want to do Enable Editing om the Internet can contain viruses…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us