

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
I am student at Baddi University of Emerging Sciences and Technologies. To help my friends in other universities, I am uploading my solved assignments of different courses. Its for Modern Programming Languages course. Other can see if they are searching following: Alstrasoft, Expert, Environmental, System, Application, Weather, Prolog, Gui, Facts
Typology: Exercises
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Total Marks: 20 Dead line: June 06, 2012
Suppose you are developing an expert Environmental system at Alstrasoft Pvt Ltd that strives to be the premier provider of web-based software solutions for businesses worldwide. As a web development and software company, Alstrasoft specialize mainly in web design and software programming.
Now In the same Environmental systems that predict the weather, analyze water supplies, and so on. There is a need to develop an expert system in Prolog named ‘ Weather Modeling System’ , for National Center for Atmospheric Research .This expert system will provide relatively detailed, short term forecast of meteorological conditions. It is used particularly to model pollutant dispersion (for instance, acid rain deposition). Answer the following questions based on the scenario provided.
a) Why is PROLOG the language of choice for developers to develop expert system like ‘ Weather Modeling System’? [5]
Solution:
-Expert Systems and Prolog:
Prolog is the language of choice for developers and a powerful tool to develop commercial applications. The technology is now in widespread use in a wide range of domains, including finance, defense, telecommunications, law, medicine, agriculture, engineering, manufacturing, and education. Prolog has some clear advantages over other programming languages and can to significant returns on investments and completive advantages.
In expert systems that have number of major system components and interface with individuals Prolog is mostly used .Prolog is successful in an environmental systems like weather modeling system as this is a sort of expert system that predict the weather, analyze water supplies, and so on. The Weather Modeling System, gives relatively detailed, short term forecast of meteorological conditions. It is used particularly to model pollutant dispersion (for instance, acid rain deposition).To develop this fully interactive system with proper GUI for users in which they can see the detail data for weather analysis prolog is the choice for programmers because it is declarative programming language and in prolog we program the logic of the program and prolog system automatically implements the control.
b ) Write Prolog equivalent for the following statements? [5]
Solution:
?- Weather(cloudy, rainy).
?- expected(Dust storm,today)
?- carries(Mike, umbrella, John).
?- forecast(rain, today).
?- round(earth).