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

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

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.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

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 .