Hello forum. I have a question.
I have something like this written:
and I want the user to type their preference of travel (plane, car, boat), so that the system could give them the possible destinations to choose from. Note that I ask the user multiple questions consequently and i don't want them to press space bar in order to show all the possible destinations.
write("What mean of transportation will you wish to use? (options: plane, car, boat)"),nl,
write("What's your badget?"),nl,
it runs smoothly but the output is only the first of each category (when user selects plane, it is always and only miami etc.)
I would like the system 1) to find all the available destinations
2) store them somewhere in order to proceed to the next question (this time with some filter from the previous question. For example if the user types car I want the system to show only Toronto and NewYork and then when it comes to the next question about pricing , I want the system to only process the question for the destinations with car.
Im new to prolog don't hate me if it's too simple. Thanks forum, cheers.