For each of these problems, would a scripting language like Perl/JavaScript, an
ID: 666305 • Letter: F
Question
For each of these problems, would a scripting language like Perl/JavaScript, an imperative-style systems programming language like C, an object-oriented programming language like Java/C#, a functional-style programming language like Scheme/LISP, or a logic-style programming language like Prolog be better assuming equal programmer expertise in each language? Also indicate WHY (no credit without a valid reason). ?
a. A program to diagnose tropical plant diseases from symptoms and recommend treatment.
b. A program to store local copies of a website's pages and modify those pages to show (by highlighting in purple) what has changed on the webpage since the user's last viewing.
c. A program to simulate analog electronic circuits with many different types of components.
d. A program to simulate the movement of stars in a galaxy over billions of years.
Explanation / Answer
a) For this we should use system programming language like C as it can be used to intract with hardware and monitoring the changes.
b) For this we should use scripting language like Perl to store logs of the data and to scrap.
c) For this we should use Prolog to validate various logical combinations.
d) For this we should use functional programming language like Java as it will involve lot of algorithms to implements and also will involve use of graphics.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.