BIL 101 INTRODUCTION TO COMPUTER SCIENCE HW 07 solved

$35.00

Category: You will receive a download link of the .ZIP file upon Payment

Description

5/5 - (1 vote)

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.