Given two medications, if they interact, tell what the effect of the interaction may be. Note there may be more than one result of the interaction.

computer science

Description

Organization of Programming Languages

ProLog

 

 

Download (or run online) the SWI Prolog: https://www.swi-prolog.org/

 

 

         Format is:  (base drug, interacts with drug, effect)

 

 

         Given two medications, if they interact, tell what the effect of the interaction may be. Note there may be more than one result of the interaction.

 

(Think ‘compound question’)

(But there is more than one way of doing this, implement, as you feel best!)

 

         Given a medical condition, list the drug interactions that may have caused it.

 

         Given a drug, list the drugs, which have no interactions with it.

 

          Given a drug, list the drugs, which do interact with it.

 

These may help you with ProLog syntax and logic:

Part 1

https://www.youtube.com/watch?v=gJOZZvYijqk

 

Part 2

https://youtu.be/tDeR7_DzCDQ

 

 

Hand in: code files, these can be text files that have your code in them.  Also, screen shots of the ProLog questions running and doing what they are supposed to do (i.e. proving your logic/code works).

No ZIP files please.

 


Related Questions in computer science category