I'm doing a project for my last university examination but I'm having some troubles! I'm making an expert system who should be able to assemble a computer after asking some questions to the user. It works but according to my teacher I need to define more rules, could you give me some suggestions please? I have facts like these:
processor(P, Proc_price, Price_range),
motherboard(M, Motherboard_price, Price_range),
ram(R, Ram_price, Price_range),
case(C, Case_price, Price_range),
ali(A, Ali_price, Price_range),
video_card(V, Vga_price, Price_range),
ssd(S, Ssd_price, Price_range),
monitor(D, Monitor_price, Price_range),
hdd(H, Hdd_price, Price_range).
I ask these questions to the user: 1) choose the price range 2) choose the display size 3) choose hard disk size Then I ask 3 questions about computer utilization to define the user: 1) do you surf on internet? 2) do you play? 3) do you use editing programs?
use(gaming) :- ask("Do you play games? (y/n)").
use(editing) :- ask("Do you use editing programs? (y/n)").
use(surfing) :- ask("Do you surf internet?(y/n)").
user(base) :-
use(surfing), \+ use(gaming), \+ use(editing).
user(gamer) :-
use(gaming), use(surfing), \+ use(editing).
user(professional) :-
use(editing), \+ use(gaming), use(surfing).
I should make more questions about user definition to make user definition more complex too and add some rules. Please help me, I'm desperate