SlideShare a Scribd company logo
1 of 6
Download to read offline
CODIGO DEL PROGRAMA
frame plantas ;
default proporciona_alimento is si
and default se_reproduce is si
and default nombre is vacio .



frame briofita is a planta ;
default estructura is talo
and default tamaño is medio .

frame cormofitas is a planta ;
default estructura is compleja
and default vasos_conductores is si .



frame musgos is a briofita ;
default tejido_vascular is si
and default especies is quince_mil .

frame hepaticas is a briofita ;
default tejido_vascular is no
and default especies is seis_mil_a_diez_mil .

frame teridofitos is a cormofitas ;
default semillas is no
and default cultivo is ornamentales .

frame espermatofitos is a cormofitas ;
default semillas is si
and default estructura is compleja .



frame helechos is a teridofitos ;
default reproduccion is esporas
and default estructura is raiz_tallo_y_hoja .

frame equisetos is a teridofitos ;
default reproduccion is semillas
and default especies is veinte_mil .

frame gimnospermas is a espermatofitos ;
default flores is poco_vistosas
and default especies is ochocientos_cincuenta .

frame angiospermas is a espermatofitos ;
default flores is muy_vistosas
and default especies is docientos_veinticuatro_mil .
frame leptosporangiados is a helechos ;
default tamaño_esporangios is pequeños
and default pedunculo is macizo .

frame eusporangidos is a helechos ;
default tamaño_esporangios is grandes
and default pedunculo is delgado .

frame equisetum is a equisetos ;
default altura is dos_metros .

frame calamites is a equisetos ;
default altura is treinta_metros .

frame coniferas is a gimnospermas ;
default forma_hojas is agujas_o_escamas
and default especies is quinientos_setenta_y_cinco .

frame cicadas is a gimnospermas ;
default forma_hojas is pinadas_o_bipinadas
and default especies is trecientos_sesenta .

frame monocotiledoneas is a angiospermas ;
default num_cotiledon is uno
and default especies is cincuenta_mil .

frame dicotiledoneas is a angiospermas ;
default num_cotiledon is dos
and default especies is ciento_setenta_mil .



frame ofioglosaceas is a eusporangiados ;
default hojas is pinadas
and default tamaño is pequeño .

frame marattiales is a eusporangiados ;
default hojas is escamosas
and default habitat is tropicales_humedos .

frame magnoliidae is a monocotiledoneas ;
default forma_flores is aciclicas
and default forma_maduración is centripeta .

frame rosidae is a monocotiledoneas ;
default forma_flores is disco_o_conica
and default producen is taninos .

frame lilidae is a dicotiledoneas ;
default fruto is capsular .

frame aceriidae is a dicotiledoneas ;
default fruto is indehiscente .


question pregunta1
¿Cual es el tipo de estructura? ;
choose from talo , compleja .

question pregunta2
¿Tiene tejido vascular? ;
choose from si , no .

question pregunta3
¿Tiene semillas? ;
choose from no , si .

question pregunta4
¿Se reproduce por medio de? ;
choose from esporas , semillas .

question pregunta5
¿Como son sus flores? ;
choose from poco_vistosas , muy_vistosas .

question pregunta6
¿Como es el tamaño de sus esporagios? ;
choose from pequeños , grandes .

question pregunta7
¿Cual es su altura? ;
choose from dos_metros , treinta_metros .

question pregunta8
¿Como es la forma de sus hojas? ;
choose from agujas_o_escamas , pinadas_o_bipinadas .

question pregunta9
¿Cuantos cotiledones tiene? ;
choose from uno , dos .

question pregunta10
¿Cual es la forma de sus hojas? ;
choose from pinadas , escamosas .

question pregunta11
¿Cual es la forma de sus flores? ;
choose from aciclicas , disco_o_conica .

question pregunta12
¿Como es su fruto? ;
choose from capsular , indehiscente .



rule regla1
if the pregunta1 is talo
and the pregunta2 is si
then the planta`s nombre becomes 'Musgos' .

rule regla2
if the pregunta1 is talo
and the pregunta2 is no
then the planta`s nombre becomes 'Hepaticas' .

rule regla3
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is esporas
and the pregunta6 is pequeños
then the planta`s nombre becomes 'Leptosporangiados' .

rule regla4
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is esporas
and the pregunta6 is grandes
and the pregunta10 is pinadas
then the planta`s nombre becomes 'Ofioglósáceas' .

rule regla5
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is esporas
and the pregunta6 is grandes
and the pregunta10 is escamosas
then the planta`s nombre becomes 'Marratiales' .

rule regla6
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is semillas
and the pregunta7 is dos_metros
then the planta`s nombre becomes 'Equisetum' .

rule regla7
if the pregunta1 is compleja
and the pregunta2 is no
and the pregunta4 is semillas
and the pregunta7 is treinta_metros
then the planta`s nombre becomes 'Calamites' .

rule regla8
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is poco_vistosas
and the pregunta8 is agujas_o_escamas
then the planta`s nombre becomes 'Coniferas' .

rule regla9
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is poco_vistosas
and the pregunta8 is pinadas_o_bipinadas
then the planta`s nombre becomes 'Cicadas' .

rule regla10
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is uno
and the pregunta11 is aciclicas
then the planta`s nombre becomes 'Magnolidae' .

rule regla11
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is uno
and the pregunta11 is disco_o_conica
then the planta`s nombre becomes 'Rosidae' .

rule regla12
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is dos
and the pregunta12 is capsular
then the planta`s nombre becomes 'Lilidae' .

rule regla13
if the pregunta1 is compleja
and the pregunta2 is si
and the pregunta5 is muy_vistosas
and the pregunta9 is dos
and the pregunta12 is indehiscente
then the planta`s nombre becomes 'Aceriidae' .



group general
regla1, regla2, regla3, regla4, regla5, regla6, regla7, regla8, regla9, regla10, regla11,
regla12, regla13 .

ruleset motor
contains general ;
update ruleset by removing each selected rule .

action arranque ;
do restart
and invoke ruleset motor
and echo ('La planta que buscaba es', planta`s nombre)
and nl .
Codigo del Programa

More Related Content

Similar to Codigo del Programa (8)

codigoplanta
codigoplantacodigoplanta
codigoplanta
 
SBC Plantas WinProlog
SBC Plantas WinPrologSBC Plantas WinProlog
SBC Plantas WinProlog
 
programa
programaprograma
programa
 
Nematoda Marfe
Nematoda MarfeNematoda Marfe
Nematoda Marfe
 
codigo
codigocodigo
codigo
 
Codigos(2)
Codigos(2)Codigos(2)
Codigos(2)
 
Trabajo Oscar
Trabajo OscarTrabajo Oscar
Trabajo Oscar
 
Ejercicio Texto
Ejercicio TextoEjercicio Texto
Ejercicio Texto
 

Recently uploaded

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Recently uploaded (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Codigo del Programa

  • 1. CODIGO DEL PROGRAMA frame plantas ; default proporciona_alimento is si and default se_reproduce is si and default nombre is vacio . frame briofita is a planta ; default estructura is talo and default tamaño is medio . frame cormofitas is a planta ; default estructura is compleja and default vasos_conductores is si . frame musgos is a briofita ; default tejido_vascular is si and default especies is quince_mil . frame hepaticas is a briofita ; default tejido_vascular is no and default especies is seis_mil_a_diez_mil . frame teridofitos is a cormofitas ; default semillas is no and default cultivo is ornamentales . frame espermatofitos is a cormofitas ; default semillas is si and default estructura is compleja . frame helechos is a teridofitos ; default reproduccion is esporas and default estructura is raiz_tallo_y_hoja . frame equisetos is a teridofitos ; default reproduccion is semillas and default especies is veinte_mil . frame gimnospermas is a espermatofitos ; default flores is poco_vistosas and default especies is ochocientos_cincuenta . frame angiospermas is a espermatofitos ; default flores is muy_vistosas and default especies is docientos_veinticuatro_mil .
  • 2. frame leptosporangiados is a helechos ; default tamaño_esporangios is pequeños and default pedunculo is macizo . frame eusporangidos is a helechos ; default tamaño_esporangios is grandes and default pedunculo is delgado . frame equisetum is a equisetos ; default altura is dos_metros . frame calamites is a equisetos ; default altura is treinta_metros . frame coniferas is a gimnospermas ; default forma_hojas is agujas_o_escamas and default especies is quinientos_setenta_y_cinco . frame cicadas is a gimnospermas ; default forma_hojas is pinadas_o_bipinadas and default especies is trecientos_sesenta . frame monocotiledoneas is a angiospermas ; default num_cotiledon is uno and default especies is cincuenta_mil . frame dicotiledoneas is a angiospermas ; default num_cotiledon is dos and default especies is ciento_setenta_mil . frame ofioglosaceas is a eusporangiados ; default hojas is pinadas and default tamaño is pequeño . frame marattiales is a eusporangiados ; default hojas is escamosas and default habitat is tropicales_humedos . frame magnoliidae is a monocotiledoneas ; default forma_flores is aciclicas and default forma_maduración is centripeta . frame rosidae is a monocotiledoneas ; default forma_flores is disco_o_conica and default producen is taninos . frame lilidae is a dicotiledoneas ; default fruto is capsular . frame aceriidae is a dicotiledoneas ;
  • 3. default fruto is indehiscente . question pregunta1 ¿Cual es el tipo de estructura? ; choose from talo , compleja . question pregunta2 ¿Tiene tejido vascular? ; choose from si , no . question pregunta3 ¿Tiene semillas? ; choose from no , si . question pregunta4 ¿Se reproduce por medio de? ; choose from esporas , semillas . question pregunta5 ¿Como son sus flores? ; choose from poco_vistosas , muy_vistosas . question pregunta6 ¿Como es el tamaño de sus esporagios? ; choose from pequeños , grandes . question pregunta7 ¿Cual es su altura? ; choose from dos_metros , treinta_metros . question pregunta8 ¿Como es la forma de sus hojas? ; choose from agujas_o_escamas , pinadas_o_bipinadas . question pregunta9 ¿Cuantos cotiledones tiene? ; choose from uno , dos . question pregunta10 ¿Cual es la forma de sus hojas? ; choose from pinadas , escamosas . question pregunta11 ¿Cual es la forma de sus flores? ; choose from aciclicas , disco_o_conica . question pregunta12 ¿Como es su fruto? ; choose from capsular , indehiscente . rule regla1
  • 4. if the pregunta1 is talo and the pregunta2 is si then the planta`s nombre becomes 'Musgos' . rule regla2 if the pregunta1 is talo and the pregunta2 is no then the planta`s nombre becomes 'Hepaticas' . rule regla3 if the pregunta1 is compleja and the pregunta2 is no and the pregunta4 is esporas and the pregunta6 is pequeños then the planta`s nombre becomes 'Leptosporangiados' . rule regla4 if the pregunta1 is compleja and the pregunta2 is no and the pregunta4 is esporas and the pregunta6 is grandes and the pregunta10 is pinadas then the planta`s nombre becomes 'Ofioglósáceas' . rule regla5 if the pregunta1 is compleja and the pregunta2 is no and the pregunta4 is esporas and the pregunta6 is grandes and the pregunta10 is escamosas then the planta`s nombre becomes 'Marratiales' . rule regla6 if the pregunta1 is compleja and the pregunta2 is no and the pregunta4 is semillas and the pregunta7 is dos_metros then the planta`s nombre becomes 'Equisetum' . rule regla7 if the pregunta1 is compleja and the pregunta2 is no and the pregunta4 is semillas and the pregunta7 is treinta_metros then the planta`s nombre becomes 'Calamites' . rule regla8 if the pregunta1 is compleja and the pregunta2 is si and the pregunta5 is poco_vistosas and the pregunta8 is agujas_o_escamas then the planta`s nombre becomes 'Coniferas' . rule regla9
  • 5. if the pregunta1 is compleja and the pregunta2 is si and the pregunta5 is poco_vistosas and the pregunta8 is pinadas_o_bipinadas then the planta`s nombre becomes 'Cicadas' . rule regla10 if the pregunta1 is compleja and the pregunta2 is si and the pregunta5 is muy_vistosas and the pregunta9 is uno and the pregunta11 is aciclicas then the planta`s nombre becomes 'Magnolidae' . rule regla11 if the pregunta1 is compleja and the pregunta2 is si and the pregunta5 is muy_vistosas and the pregunta9 is uno and the pregunta11 is disco_o_conica then the planta`s nombre becomes 'Rosidae' . rule regla12 if the pregunta1 is compleja and the pregunta2 is si and the pregunta5 is muy_vistosas and the pregunta9 is dos and the pregunta12 is capsular then the planta`s nombre becomes 'Lilidae' . rule regla13 if the pregunta1 is compleja and the pregunta2 is si and the pregunta5 is muy_vistosas and the pregunta9 is dos and the pregunta12 is indehiscente then the planta`s nombre becomes 'Aceriidae' . group general regla1, regla2, regla3, regla4, regla5, regla6, regla7, regla8, regla9, regla10, regla11, regla12, regla13 . ruleset motor contains general ; update ruleset by removing each selected rule . action arranque ; do restart and invoke ruleset motor and echo ('La planta que buscaba es', planta`s nombre) and nl .