Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amanda #11

Open
Amanda004 opened this issue Nov 30, 2024 · 0 comments
Open

Amanda #11

Amanda004 opened this issue Nov 30, 2024 · 0 comments

Comments

@Amanda004
Copy link

Amanda004 commented Nov 30, 2024

% Las Reglas
Git checkout -b rama-gripe
Git add.
Git commit-m"gripe(X):- malestar(X), fiebre(X), tos(X),sec_nas(X).
gripe(X):- malestar(X), fiebre(X), tos(X),sec_nas(X).
Git checkout -b rama-dengue.
Git add.
Git commit-m"dengue(X):- malestar(X), fiebre(X), dolor_art_mus(X), rash(X).
dengue(X):- malestar(X), fiebre(X), dolor_art_mus(X), rash(X).

% El diagnostico
Git checkout -b rama-principal
Git push origin rama.
diagnostico(X):-nl, write('Se investiga GRIPE'),gripe(X),
nl, write(X), write(' tiene sintomas de GRIPE.'),fail.
diagnostico(X):-nl, write('Se investiga DENGUE'), dengue(X),
nl, write(X),write(' tiene sospecha de DENGUE.').
diagnostico(X):-write(' NO SE LOGRO UN DIAGNOSTICO.').
Consulta 1
?- diagnostico(pepe).
Se investiga GRIPE
pepe tiene malestar? [s/n]: s.
pepe tiene fiebre? [s/n]: |: s.
pepe tiene tos? [s/n]: |: n.

Se investiga DENGUE
pepe tiene malestar? [s/n]: |: s.
pepe tiene fiebre? [s/n]: |: s.
pepe tiene dolor muscular o en articulaciones?[s/n]: |: s.
pepe tiene rash [s/n]: |: s.
pepe tiene sospecha de DENGUE.
Consulta 2
?- diagnostico(pepe).
Se investiga GRIPE
pepe tiene malestar? [s/n]: s.
pepe tiene fiebre? [s/n]: |: n.

Se investiga DENGUE
pepe tiene malestar? [s/n]: |: s.
pepe tiene fiebre? [s/n]: |: n.

NO SE LOGRO UN DIAGNOSTICO.

@Amanda004 Amanda004 reopened this Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant