IT 117: Intermediate Scripting
Class 24

Review


New Material


Microphone

Questions

Are there any questions before I begin?

Quiz 9

Let's look at the answers to Quiz 9.

There is no graded Quiz today, but there will be one next week.

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 9

I have posted a solution to homework 9 here.

Let's take a look.

Homework 10

I have posted homework 10 here.

This is the last homework assignment.

It is due this Sunday at 11:59 PM.

Final Exam

The final exam will be held on Thursday, December 17th from 3:00 PM - 6:00 PM.

The exam will NOT be given in this room.

It will be given instead in the Pomplun Lab, M03-0730 just down the hall.

If for some reason you are not able to take the Final at the time it will be offered, you MUST send an email to me before the exam so we can make alternative arrangements.

The final will consist of questions taken from the Weekly Graded Quizzes, along with questions asking you to write short segments of Python code.

60% of the points on this exam will consist of questions from all the Graded Quizzes.

You will find links to the answers to all graded quizzes here .

You do not need to study a Graded Quiz question if the topic is not mentioned in either the Midterm or Final review.

The remaining 40% will come from 4 questions that ask you to write some code.

To study for the code questions you should be able to

A good way to study for the code questions is to review the Class Exercises, homework solutions and Class Notes.

You will only be responsible for the material Midterm review, which you will find here and the Final review which is here.

  • Class 28, is normally a review session, but this year the date for a 28th class falls after the end of the semester.
  • Instead of a review class I will hold Zoom Office Hours all day on Tuesday, December 15th, from 9 AM to 5 PM.
  • Although the time alloted for the exam is 3 hours, I would expect that most of you would not need that much time.

    The final is a closed book exam.

    To prevent cheating, certain rules will be enforced during the exam.

    Remember, the Midterm and Final determine 50% of your grade.

    Course Evaluation

    At the end of each semester we offer you the opportunity to say what you think about this course.

    What have I done right?

    What have I done wrong?

    What can I do better?

    You are not asked for you name.

    So the submissions are anonymous.

    I will not see your responses until after I have submitted grades for this course.

    We collect this feedback through Course Evaluations.

    I will use what you say to make this course better.

    You should have recieved a link to this evaluation in your UMB email.

    Today's Class

    Today I will discuss recursive functions.

    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

    Mutator for the Instructional Class

    Accessors for the Instructional Class

    Polymorphism

    Three Principles of Object-Oriented Programming

    Attendance

    New Material

    Functions Calling Functions

    Recursive Functions

    Writing Recursive Functions

    Calculating the Factorial of a Number

    Calculating Fibonacci Numbers

    Palindromes

    Using Recursion in IT

    Replacing Recursion with a Loop

    Calculating Factorials with a Loop

    Calculating Fibonacci Numbers with a Loop

    Why Use Recursion?

    Direct versus Indirect Recursion

    Intellectual Property

    Class Exercise

    Class Quiz