Second Practicum:
Supply the missing function in dictionary.py. The function should calculate and return the baseball team from each division with the most wins..
Object Oriented Terminology
Complete the class code to create a subclass of appliance for refrigerators. When an instance of refrigerator is created, the refrigerant information is included. The desired output when an instance of refrigerator is printed should be:
The Samsung refrigerator contains refrigerant R134a.
Beginning code: link
Object Oriented Problem Example: (Sample Solution)
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
- The exam will emphasize Dictionaries and Object Oriented Programming. The assignments and active learning exercises should help reinforce your understanding.
- To answer a question, you might need to build on knowledge that you learned previously.
- You may only use the internet to access the interactive python textbook, the online python documentation or previous python programs that you wrote for this course.
- To be successful on the exam, strive to understand the Python material and be able to use it to solve small problems.
Supply the missing function in dictionary.py. The function should calculate and return the baseball team from each division with the most wins..
Object Oriented Terminology
- Class
- Object (or Instance)
- Method
- Special Methods: Constructor, Reader Method, Writer Method
- More Special Methods: __str__, __add__
- Instance Variable (or State Variable)
- Inheritance
Complete the class code to create a subclass of appliance for refrigerators. When an instance of refrigerator is created, the refrigerant information is included. The desired output when an instance of refrigerator is printed should be:
The Samsung refrigerator contains refrigerant R134a.
Beginning code: link
Object Oriented Problem Example: (Sample Solution)
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