SlideShare a Scribd company logo
1 of 4
Download to read offline
frame reino ;
default clase is cualquiera .

frame animal is a reino ;
default piensa is si
and default pelo is si .

frame vejetal is a reino ;
default piensa is no
and default crecen is si .

frame terrestre is a animal ;
default vuelan is no
and default crecen is si .

frame aereos is a animal ;
default vuelan is si
and default oviparos is si .

frame frutales is a vejetal ;
default clima is tropical_templadas
and default propagan is semillas .

frame maderables is a vejetal ;
default clima is tropicales
and default empleado is fabricacion_de_muebles .

frame paloma is a aereos ;
default alimentacion is frutos
and default ponen is '1_2_huevos' .

frame mariposa is a aereos ;
default alimentacion is nectar
and default longitud is '30cm' .

frame perro is a terrestre ;
default patas is cuatro
and default ladra is si .

frame mono is a terrestre ;
default patas is dos
and default pelo is si .

frame uva is a frutales ;
default familia is 'Ramn?ceas'
and default elaboran is vino .

frame fresa is a frutales ;
default familia is ros?ceas
and default nativas is america .

frame pino is a maderables ;
default especie is coniferas
and default genero is pinus .

frame roble is a maderables ;
default familia is fag?ceas
and default genero is 'Quercus' .

question p1
puede pensar ? ;
choose from si, no .

question p2
pueden volar ? ;
choose from si, no .

question p3
su clima es ? ;
choose from tropical_templadas, tropicales .

question p4
alimentacion ? ;
choose from nectar, frutos .

question p5
numero de patas ? ;
choose from cuatro, dos .

question p6
su familia es ? ;
choose from 'Ramn?ceas', ros?ceas .

question p7
clase de genero ? ;
choose from pinus, 'Quercus' .

rule r1
if the p1 is si
and the p2 is si
and the p4 is nectar
then the reino`s clase becomes mariposa .

rule r2
if the p1 is si
and the p2 is si
and the p4 is frutos
then the reino`s clase becomes paloma .

rule r3
if the p1 is si
and the p2 is no
and the p5 is cuatro
then the reino`s clase becomes perro .

rule r4
if the p1 is si
and the p2 is no
and the p5 is dos
then the reino`s clase becomes mono .

rule r5
if the p1 is no
and the p3 is tropical_templadas
and the p6 is 'Ramn?ceas'
then the reino`s clase becomes uva .

rule r6
if the p1 is no
and the p3 is tropical_templadas
and the p6 is ros?ceas
then the reino`s clase becomes fresa .

rule r7
if the p1 is no
and the p3 is tropicales
and the p7 is pinus
then the reino`s clase becomes pino .

rule r8
if the p1 is no
and the p3 is tropicales
and the p7 is 'Quercus'
then the reino`s clase becomes roble .
group grupos
r1, r2, r3, r4, r5, r6, r7, r8 .

ruleset ru1
contains grupos ;
update ruleset by removing each selected rule .

action compila ;
do restart
and invoke ruleset ru1
and echo ('lo que busca es:', reino`s clase)
and nl .

More Related Content

Viewers also liked

Closet & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation NationalCloset & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation NationalBobLewis
 
Going Mobile with HTML5
Going Mobile with HTML5Going Mobile with HTML5
Going Mobile with HTML5John Reiser
 
Mitigating The Risk Of A Bad Hire
Mitigating The Risk Of A Bad HireMitigating The Risk Of A Bad Hire
Mitigating The Risk Of A Bad HireFobbst
 
Python Programming and GIS
Python Programming and GISPython Programming and GIS
Python Programming and GISJohn Reiser
 
Closet & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation NationalCloset & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation NationalBobLewis
 
The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...
The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...
The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...Fobbst
 

Viewers also liked (10)

Closet & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation NationalCloset & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation National
 
Glooq
GlooqGlooq
Glooq
 
Going Mobile with HTML5
Going Mobile with HTML5Going Mobile with HTML5
Going Mobile with HTML5
 
Mitigating The Risk Of A Bad Hire
Mitigating The Risk Of A Bad HireMitigating The Risk Of A Bad Hire
Mitigating The Risk Of A Bad Hire
 
Python Programming and GIS
Python Programming and GISPython Programming and GIS
Python Programming and GIS
 
Closet & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation NationalCloset & Storage Concepts Consumer Presentation National
Closet & Storage Concepts Consumer Presentation National
 
Mormons
MormonsMormons
Mormons
 
Geodatabases
GeodatabasesGeodatabases
Geodatabases
 
The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...
The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...
The Evaluation of a Paradigm: The Critical Examination of the Influence of Fo...
 
Map Projections
Map ProjectionsMap Projections
Map Projections
 

Similar to Codigos(2)

Similar to Codigos(2) (7)

Ejercicio Texto
Ejercicio TextoEjercicio Texto
Ejercicio Texto
 
programa
programaprograma
programa
 
Nematoda Marfe
Nematoda MarfeNematoda Marfe
Nematoda Marfe
 
codigoplanta
codigoplantacodigoplanta
codigoplanta
 
SBC Plantas WinProlog
SBC Plantas WinPrologSBC Plantas WinProlog
SBC Plantas WinProlog
 
codigo_animal
codigo_animalcodigo_animal
codigo_animal
 
Codigo del Programa
Codigo del ProgramaCodigo del Programa
Codigo del Programa
 

Recently uploaded

Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature SetCreating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature SetDenis Gagné
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 DelhiCall Girls in Delhi
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
Understanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key InsightsUnderstanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key Insightsseri bangash
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyEthan lee
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...amitlee9823
 
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...Suhani Kapoor
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 

Recently uploaded (20)

Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature SetCreating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
Creating Low-Code Loan Applications using the Trisotech Mortgage Feature Set
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
9599632723 Top Call Girls in Delhi at your Door Step Available 24x7 Delhi
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Understanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key InsightsUnderstanding the Pakistan Budgeting Process: Basics and Key Insights
Understanding the Pakistan Budgeting Process: Basics and Key Insights
 
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case studyThe Coffee Bean & Tea Leaf(CBTL), Business strategy case study
The Coffee Bean & Tea Leaf(CBTL), Business strategy case study
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
VIP Call Girls Gandi Maisamma ( Hyderabad ) Phone 8250192130 | ₹5k To 25k Wit...
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 

Codigos(2)

  • 1. frame reino ; default clase is cualquiera . frame animal is a reino ; default piensa is si and default pelo is si . frame vejetal is a reino ; default piensa is no and default crecen is si . frame terrestre is a animal ; default vuelan is no and default crecen is si . frame aereos is a animal ; default vuelan is si and default oviparos is si . frame frutales is a vejetal ; default clima is tropical_templadas and default propagan is semillas . frame maderables is a vejetal ; default clima is tropicales and default empleado is fabricacion_de_muebles . frame paloma is a aereos ; default alimentacion is frutos and default ponen is '1_2_huevos' . frame mariposa is a aereos ; default alimentacion is nectar and default longitud is '30cm' . frame perro is a terrestre ; default patas is cuatro and default ladra is si . frame mono is a terrestre ; default patas is dos and default pelo is si . frame uva is a frutales ; default familia is 'Ramn?ceas'
  • 2. and default elaboran is vino . frame fresa is a frutales ; default familia is ros?ceas and default nativas is america . frame pino is a maderables ; default especie is coniferas and default genero is pinus . frame roble is a maderables ; default familia is fag?ceas and default genero is 'Quercus' . question p1 puede pensar ? ; choose from si, no . question p2 pueden volar ? ; choose from si, no . question p3 su clima es ? ; choose from tropical_templadas, tropicales . question p4 alimentacion ? ; choose from nectar, frutos . question p5 numero de patas ? ; choose from cuatro, dos . question p6 su familia es ? ; choose from 'Ramn?ceas', ros?ceas . question p7 clase de genero ? ; choose from pinus, 'Quercus' . rule r1 if the p1 is si and the p2 is si
  • 3. and the p4 is nectar then the reino`s clase becomes mariposa . rule r2 if the p1 is si and the p2 is si and the p4 is frutos then the reino`s clase becomes paloma . rule r3 if the p1 is si and the p2 is no and the p5 is cuatro then the reino`s clase becomes perro . rule r4 if the p1 is si and the p2 is no and the p5 is dos then the reino`s clase becomes mono . rule r5 if the p1 is no and the p3 is tropical_templadas and the p6 is 'Ramn?ceas' then the reino`s clase becomes uva . rule r6 if the p1 is no and the p3 is tropical_templadas and the p6 is ros?ceas then the reino`s clase becomes fresa . rule r7 if the p1 is no and the p3 is tropicales and the p7 is pinus then the reino`s clase becomes pino . rule r8 if the p1 is no and the p3 is tropicales and the p7 is 'Quercus' then the reino`s clase becomes roble .
  • 4. group grupos r1, r2, r3, r4, r5, r6, r7, r8 . ruleset ru1 contains grupos ; update ruleset by removing each selected rule . action compila ; do restart and invoke ruleset ru1 and echo ('lo que busca es:', reino`s clase) and nl .