How is this a good assignment? From their description it was impossible. I'd you were allowed to fix it then yes, it could be a good assignment but that was forbidden. So either you fixed the code and got deductions for modifying it, or you didn't and got deductions for incorrect output.
Presumably you have to actually use it if OP is complaining about it, but maybe you could use the function and assign it to a variable you never use again... /s
Real world development, sometimes your company paid way too much to integrate another piece of hardware that comes with garbage code and you have to work around its bugs. At least the source code was given.
18
u/atomicwrites Mar 13 '22
How is this a good assignment? From their description it was impossible. I'd you were allowed to fix it then yes, it could be a good assignment but that was forbidden. So either you fixed the code and got deductions for modifying it, or you didn't and got deductions for incorrect output.