Second Practicum: Thursday, March 30th

Dictionary Problem Example

Supply the missing function in dictionary.py. The function should calculate and return the number of wins.

Object Oriented Terminology

Object Oriented Problem Example

We can represent a rectangle by knowing three things: the location of its lower left corner, its width, and its height. Create a class definition for a Rectangle class using this idea. The following statement should create a Rectangle object at location (4,5) with width 6 and height 5:

r = Rectangle(Point(4, 5), 6, 5)

Object Oriented Problem Example

Supply the missing class in oop.py such that the following output is produced when the program is run:

Montana State beat Idaho State on 3/11/2017: 62 to 56
Washington beat Montana State on 3/18/2018: 91 to 63