This homework will be worth a total of 40 points:
- 36 points for correctness, including no memory leaks or errors (hint: you can use
valgrind
on C++ executables too!) - 2 points for style, and
- 2 points for error-free compilation.
Your submission will be assessed based on output correctness. The autograder will compare your program’s output from hw7.cc
line by line against the expected output.
A correct implementation must match the expected output exactly.
Please do not attempt to hard-code the output; staff will verify that your output is produced through the proper implementation and usage of the Vector
class.
Caution
If for some reason your program produces values that do not exactly match the expected output due to floating point rounding differences (but are reasonably close) please submit a private post on Ed. The staff will review your submission to determine if you are eligible for partial credit for discrepancies that the autograder may deduct due to slight mismatches.
You are encouraged to resubmit until you earn a perfect score before the due date.
Note¶
Warning
You should not use this autograder as your primary test mechanism, but it will provide some immediate feedback.
You should test that your code can compile without any warning by running your Makefile with make
on Calgary. You should test your implementation using the provided hw7
demo program.
Code Interview¶
As a reminder, HW7 will have an associated Code Interview, during the calendar week after the initial deadline. You will be expected to verbally explain a portion of your program and/or describe your design or implementation process. Please make sure you understand all the components of your program and be prepared to answer questions about your implementation!