Lab 13: Program 5 Debugging
Logistics
- Due: Tuesday, November 28th no later than 11:59 p.m.
- Partner Information: You may complete this assignment
individually or with exactly one partner. If you work with a partner,
you must both be enrolled in the same lab section. (Otherwise,
you and your partner will receive no credit.)
- Submission Instructions (working alone): Upload your solution,
entitled YourFirstName-YourLastName-Lab13.py to the BrightSpace
Lab 13 Dropbox.
- Submission Instructions (working with one lab mate): Upload your solution,
renamed to
YourFirstName-YourLastName-PartnerFirstName-PartnerLastName-Lab13.py
to the BrightSpace Lab 13 Dropbox.
Note: If you work with a partner, only one person needs to submit a
solution. If you both submit a solution, the submission that will be
graded is the one from the partner whose last name comes alphabetically
first.
- Deadline Reminder: Once this deadline passes, BrightSpace will no
longer accept your submission and you will no longer
be able to earn credit. Thus, if you are not able to fully complete
the assignment, submit whatever you have before the deadline so that
partial credit can be earned.
Learning Outcomes
- Gain experience understanding a solution developed by someone else.
- Gain experience debugging and commenting a solution developed
by someone else.
Assignment
The materials below contain a fairly good attempt at solving Program 5 using
Python and IDLE. Unfortunately, the program contains
various types of errors in five of the
methods of the WackyPackageSeries class. Except for theses five
methods (that are identified below), the code in this solution is correct.
Your task is to fix each of the erroneous five methods so that
the program works and produces output that matches the output
of Program 5 exactly.
Materials
Grading - 10 points
- 1 point - Appropriate comments are added to the WackyPackageSeries
class and its methods in lab13.py.
- 2 points - In the WackyPackageSeries class of lab13.py,
the __str__ method is fixed. Reuse as much of the method's
code as possible. (In other words, don't replace this method's
code with the code that you wrote for Program 5.)
- 2 points - In the WackyPackageSeries class of lab13.py,
the process_series_information method is fixed. Reuse as much
of the method's code as possible.
- 2 points - In the WackyPackageSeries class of lab13.py, the
process_collection_information method is fixed. Reuse as much
of the method's code as possible.
- 1 point - In the WackyPackageSeries class of lab13.py,
the collection_value method is fixed. Reuse as much of
the method's code as possible.
- 2 points - In the WackyPackageSeries class, the
determine_missing_information method is fixed.
Reuse as much of the method's code as possible.
If Time Remains
- Start working on Program 6. Let your lab TA know if you need
help finding a partner.