Starting from:

$25

Explain Declarative and Imperative Programming Paradigms

INTRODUCTION TO COMPUTER SCIENCE
HW 07
PART 1 (Submit to moodle / .docx)  Explain declarative and imperative programming paradigms.  Give code examples of at least 10 lines in a declarative and an imperative programming language.  Explain each line of the code examples.
PART 2 (Submit to moodle / .pl)  Is Prolog a declarative, an imperative or a functional programming language? Why?  Create your family tree with Prolog.  Use predicates: Female, Male, Parent, Child, Sibling  Create rules: Mother, Father, Brother, Sister, Daughter, Son, Grandmother, Aunt
PART 3 (Submit to moodle / .py)  Is Python a declarative, an imperative or a functional programming language? Why?  Create your family tree by using dictionary and list structures in Python.  Write a program that asks the user to enter a name and writes the relations of the name.

More products