Homework Assignment

Ensure that you adhere to the policies on academic integrity.


  1. (10 points)

    Using the diagram style of ChapterĀ 25.1, draw the final configuration that results after executing the following program.

    v = Account()
    w = Account()
    x = v
    v.deposit(100)
    w.deposit(200)
    x.deposit(400)
    v.withdraw(25)
    w.withdraw(25)
    x.withdraw(25)
  2. (10 points)

    Using a diagram style for lists as in FigureĀ 25.7, draw the final configuration that results after executing the following program.

    c = list(range(3))
    d = c
    c.append(7)
    e = list(d)
    e.append(8)

Last modified: Sunday, 29 December 2019