IT 117: Intermediate Scripting
Class 24

Review


New Material

Quiz 9

Let's look at the answers to Quiz 9.

Readings

If you have the textbook read Chapter 12, Recursion, sections 12.1 Introduction to Recursion, 12.2 Problem Solving with Recursion and 12.3 Examples of Recursive Algorithms.

Solution to Homework 10

I have posted a solution to homework 10 here.

Let's take a look.

Homework 11

I have posted homework 11 here.

This is the last homework assignment.

Review

The Movie Subclass

Creating a Subclass

Creating a Constructor for a Subclass

Movie Accessor Methods

The add_actor Method

A __str__ Method for Movie

The super Function

Creating Derived Objects

The Instructional Class

The Instructional Constructor

The get_name Method for Instructional

The __str__ Method for Instructional

Polymorphism

Mutator for the Instructional Class

Accessors for the Instructional Class

New Material

Functions Calling Functions

Recursive Functions

Writing Recursive Functions

Calculating the Factorial of a Number

Calculating Fibonacci Numbers

Another Example of Recursion

Replacing Recursion with a Loop

Calculating Factorials with a Loop

Calculating Fibonacci Numbers with a Loop

Direct versus Indirect Recursion

Intellectual Property

Attendance

Class Exercise

Class Quiz