[ww-bugs] Bug 3468: New: Error in parts (c) and (d) of this problem.
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Tue Sep 29 17:05:10 EDT 2015
http://bugs.webwork.maa.org/show_bug.cgi?id=3468
Summary: Error in parts (c) and (d) of this problem.
Product: Problem libraries
Version: unspecified
Platform: PC
URL: /opt/webwork/courses/201-921-TITCOMBE/templates/Librar
y/Rochester/setDiscrete6Integers/ur_dis_6_13.pg_with_p
roblemSeed=1234
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P5
Component: Library (OPL)
AssignedTo: jj at asu.edu
ReportedBy: mtitcombe at champlaincollege.qc.ca
Web browser Firefox
version:
Browser version 40.0.3
number:
/Library/Rochester/setDiscrete6Integers/ur_dis_6_13.pg
Using seed=1234, part (c) is to find the six-bit 1s complement of -29 which is
100010. The question has 111111 as the "correct answer".
I believe the source of the problem is in this line of the code:
$c2 = substr($ab2, 26, 6);
Same sort of problem with part (d). Six-bit 1s complement of -17 should be
101110. Again the "correct answer" is found as 111111.
Parts (a) and (b) are fine.
--
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the webwork-bugs
mailing list