BIL 101 INTRODUCTION TO COMPUTER SCIENCE HW 07 solution

$24.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (3 votes)

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.