Please i need help on how i can fix the following error please.
Posted: 3 Jun 2014 13:15
I question that concerned with
Output the diagnose diseases
The above code output the name of the patient and the disease..
I changed the clauses part so that when it doesnt diagnose
To give a note that couldnt diagnose..
The problem i have i that it diagnose and give out only one disease please i need help.
Output the diagnose diseases
Code: Select all
Predicates
gradeDisease: (name Patient) nondeterm.
clauses
gradeDisease(Patient,Disease),
VpiCommonDialogs::note(Patient,tostring(Disease)).
I changed the clauses part so that when it doesnt diagnose
To give a note that couldnt diagnose..
Code: Select all
clauses
gradesDisease(Patient) :-
If hypothesis(Patient, Disease) then
VpiCommonDialogs::note(Patient,tostring(Disease))
else
VPiCommonDialogs::note(Patient, "couldnt diagnose")
End if.