Beruflich Dokumente
Kultur Dokumente
prolog program
Search Documents
Explore Documents
Books - Fiction Books - Non-fiction Health & Medicine Brochures/Catalogs Government Docs How-To Guides/Manuals Magazines/Newspapers Recipes/Menus School Work + all categories Featured Recent
People
Authors Students Researchers Publishers Government & Nonprofits Businesses Musicians Artists & Designers Teachers + all categories Most Followed Popular Sign Up | Log In
/ 6
S 2 0
B 0 0 -
I 6 0 0
I 8 7 8
N 1 -
F M F S
E I 6 8 7 8
N O
T N :
: 1
1 SIGNATUREOFTHECOURSE
THE REVISED MEDICAL DIAGNOSISPROBLEM. SOURCE CODE: domainsdisease,indication=symbol patient=string predicateshypothesis(patient,diseas e)symptom(patient,indication)response(char)goclausesgo:-write("What is the patient's name?"),nl,readln(Patient),hypothesis(Patient,Disease),write(Patient," probably has ",Disease,"."),nl.go:-write("Sorry,I don't seen to be able to "),nl,write("diagnose the disease."),nl.symptom(Patient,fever):-write("Does ",Patient," have a fever (y/n)?"),response(Reply),Reply='y'.symptom(Patient,rash):-write("Dose ",Patient," have a rash (y/n)?"),response(Reply),Reply='y'.
symptom(Patient,headache):-write("Dose ",Patient," have a headache (y/n)?"),response(Reply),Reply='y'.symptom(Patient,runny_nose):-write("Dose ",Patient," have a runny nose (y/n)?"),response(Reply),Reply='y'.symptom(Patient,conjunctivities):-write("Dose ",Patient," have conjunctivities (y/n)?"),response(Reply),Reply='y'.symptom(Patient,cough):-write("Dose ",Patient," have a cough (y/n)?"),response(Reply),Reply='y'.symptom(Patient,body_ache):write("Dose ",Patient," have a body ache (y/n)?"),response(Reply),Reply='y'.symptom(Patient,chills):-write("Dose ",Patient," have chills (y/n)?"),response(Reply),Reply='y'.symptom(Patient,sore_throat):write("Dose ",Patient," have a sore throat (y/n)?"),response(Reply),Reply='y'.symptom(Patient,sneezing):-write("Is ",Patient," sneezing (y/n)?"),response(Reply),Reply='y'.symptom(Patient,swollen_glands):write("Dose ",Patient," have swollen glands (y/n)?"),response(Reply),Reply='y'.
hypothesis(Patient,measles):symptom(Patient,fever),symptom(Patient,cough),symptom(Patient,conjunctivities),sy mptom(Patient,runny_nose),symptom(Patient,rash).hypothesis(Patient,german_measl es):symptom(Patient,fever),symptom(Patient,headache),symptom(Patient,runny_nose),sy mptom(Patient,rash).hypothesis(Patient,flu):symptom(Patient,fever),symptom(Patient,headache),symptom(Patient,body_ache),sy mptom(Patient,conjunctivities),symptom(Patient,chills),symptom(Patient,sore_throat) ,symptom(Patient,cough),symptom(Patient,runny_nose).hypothesis(Patient,common_ cold):symptom(Patient,headache),symptom(Patient,sneezing),symptom(Patient,sore_throat) ,symptom(Patient,chills),symptom(Patient,runny_nose).hypothesis(Patient,mumps):symptom(Patient,fever),symptom(Patient,swollen_glands).hypothesis(Patient,chicken _pox):symptom(Patient,fever),symptom(Patient,rash),symptom(Patient,body_ache),sympto m(Patient,chills).hypothesis(Patient,whooping_cough):symptom(Patient,cough),symptom(Patient,sneezing),
symptom(Patient,runny_nose). response(Reply):-readchar(Reply),write(Reply),nl. OUTPUT IN DIALOG BOX:Goal: goWhat is the Patients Name?KakolyDoes Kakoly Have a fever (y/n)? yDoes Kakoly Have a cough (y/n)? yDoes Kakoly Have conjunctivities (y/n)? yDoes Kakoly Have a rash (y/n)? yDoes Kakoly Have a runny nose (y/n)? yKakoly probably has measles.yes
Prolog Program 1 Download this Document for FreePrintMobileCollectionsReport Document This is a private document.
Info and Rating AI intelligence Program Code Artificial assignment Prolog Education-Colleges-and-Universities Follow Mehedi Hasan
p.
p.
p.
2.
p.
p.
p.
3.
p.
p.
p.
4.
p.
p.
p.
5.
p.
p.
p.
6.
p.
p.
p.
7.
p.
p.
p.
8.
p.
p.
p.
9.
p.
p.
p.
10.
p.
p.
p.
11.
p.
p.
p.
12.
p.
p.
p.
13.
p.
p.
p.
14.
p.
p.
p.
15.
p.
p.
p.
16.
p.
p.
PreviousNext 1.
2 p.
3 p.
5 p.
2.
3 p.
5 p.
3 p.
3.
11 p.
2 p.
5 p.
4.
4 p.
44 p.
20 p.
5.
100 p.
6 p.
20 p.
6.
27 p.
42 p.
1 p.
7.
18 p.
7 p.
2 p.
8.
2 p.
1 p.
8 p.
9.
3 p.
Recent Readcasters
Add a Comment
2a0894c94878a83bf38898574d6f7d395b49c7fa
anushi123left a comment can someone help me, the way to ask question by using prolog user interfaces. 01 / 02 / 2010 Reply seliman21 replied: 676 01 / 08 / 2010 Mehedi Hasanleft a comment
You must use turbo prolog compiler for for compile this source code 12 / 03 / 2009 Reply prabh30left a comment hw to run this source code 11 / 16 / 2009 Reply prabh30 replied: tell me more projects in prolog 11 / 16 / 2009 offeringleft a comment i want to know program for run this code. 02 / 18 / 2009 Reply offeringleft a comment how to run this source code 02 / 18 / 2009 Reply
Send me the Scribd Newsletter, and occasional account related communications. Upload a Document
prolog program
Search Documents
Follow Us! scribd.com/scribd twitter.com/scribd facebook.com/scribd About Press Blog Partners Scribd 101
Web Stuff Support FAQ Developers / API Jobs Terms Copyright Privacy