Hey, first of all:
Sorry, i think i will have many question in the future
This question might be so easy that i couldnt find an explanation for this:
I need a simple script, that asks users for their preferences to show the perfect car for them.
I started with this basic script, but im getting an error: âstream âtiguanâ does not existâ.
my code:
car(vw,'SUV',tiguan,2010,benzin).
read_car:-
write("Which car brand do you prefer?"),nl,
read(Carbrand),nl,
write("Which type do you prefer?(SUV,Coupe)"),nl,
read(Type),nl,
write("Which fuel do you prefer?"),nl,
read(Fuel),nl,
car(Carbrand,Type,Output1,Output2,Fuel),nl,
write(Output1,Output2).
And is this the best logic for my needs? Or do you guys have any better idea to this?