To Home Page

IT 212 -- Project 7

User Defined Automobile Class

Goals:

  1. Identify items in the Automobile class and first test file.
  2. Construct the variable trace table and predict the output of the second test file.

Relevant Examples:

Details

  1. Identify the following items in the Automobile class automobile.py and test file test1.py.

         Class Name   Instance Variable   Instance Method   Public Member

         Private Member  Dunder Method   Constructor   Local Variable 

         Standalone  Method   Parameter   Argument
  2. Construct the variable trace table and predict the output from the test file test2.py. You can fill in this variable trace table:
      Local    Automobile object herbie Automobile object christine
    Variable  ======================== ===========================
       i       model color  velocity    model color  velocity
    +------+  +-----+-----+---------+  +-----+-----+---------+
    |      |  |     |     |         |  |     |     |         |
    +------+  +-----+-----+---------+  +-----+-----+---------+
    |      |  |     |     |         |  |     |     |         |
    +------+  +-----+-----+---------+  +-----+-----+---------+
    |      |  |     |     |         |  |     |     |         |
    +------+  +-----+-----+---------+  +-----+-----+---------+
       You may need more than 3 rows in your table
    
    Also predict the output.