Implement practicallythe \"Flood Prediction System\" using CLIPS software. The r
ID: 3607791 • Letter: I
Question
Implement practicallythe "Flood Prediction System" using CLIPS software.
The rules defined forthe system are given below,
Flood PredictionSystem
RuleI
If there havebeen continuous rains from last 3 weeks
Then water levelin water reservoirs is above its dangerous level
RuleII
If there isprediction of rains in for next 4 weeks
AND water levelin water reservoirs is above its dangerous level
Then there arechances of over flooding in rivers.
RuleIII
If there isprediction of heavy clouds for coming four weeks
AND there isprediction of coming air with heavy concentration ofwater
Then there isprediction of rains in for next 4 weeks
The system will askthe following facts from the user in the form of yes/no,
If there havebeen continuous rains from last 3 weeks?
If there isprediction of rains for coming four weeks?
If there arechances of coming air with heavy concentration of water?
If there isprediction of heavy clouds for coming four weeks?
Then the system willshow the result using the rules given above in the
form of text outputthat whether there are chances of over flooding inrivers
or not.
Example conversationis shown below:
If there have beencontinuous rains from last 3 weeks ?
yes (Entered by theuser)
If there isprediction of rains for coming four weeks ?
yes (Entered by theuser)
If there are chancesof com ing air with heavy concentration of water ?
Yes (Entered by theuser)
If there isprediction of heavy clouds for coming four weeks ?
yes (Entered by theuser)
Dearuser, there are chances of over flooding inrivers.
If there have beencontinuous rains from last 3 weeks ?
no (Entered by theuser)
If there isprediction of rains for coming four weeks ?
yes (Entered by theuser)
If there are chancesof com ing air with heavy concentration of water ?
Yes (Entered by theuser)
If there isprediction of heavy clouds for coming four weeks ?
yes (Entered by theuser)
Dearuser, there are no chances of over flooding inrivers.
Explanation / Answer
If the water level in waterreservoirs is above its dangerous levelAND - Then there is predictionof rains for next 4 weeks in coming four weeks there arechances of coming air with heavy concentration of water along withheavy clouds.
If there is prediction ofrains in for next 4 weeks - Then there are chances of overflooding in rivers.(Goal)
If the water level in waterreservoirs is not above its dangerous levelAND - Then there isno prediction of rains for next 4 weeks in comingfour weeks there are chances of coming air with heavy concentrationof water along with heavy clouds.
If there is no prediction ofrains in for next 4 weeks - Then there are no chances ofover flooding in rivers.(Goal)