Starting from:

$30

CSCE 240 EXAM 2

CSCE 240 EXAM 2 
You shall submit a zipped, and only zipped, archive of your Exam 2 project.
Your archive should contain the following files:
exam2/inc/functional array.h
exam2/src/functional array.cc
exam2/inc/time span.h
exam2/src/time span.cc
Rather than writing descriptions here, the problems are described in their respective headers; there are
test files provided which offer further clarification. As this is an exam, if you ask questions which can be
answered by reading the test files or the project files, I will refer you to those. Again, because this is an
exam, late submissions are not accepted. You should start working sooner rather than later.
Academic integrity will be more strictly enforced on this assignment. Your instructors have been instructed
to remind you that exams which are not group-based should be handled with greater care given the circumstances. FYI, there were submissions of HW3 similar enough that such similarities on this exam would be
turned over to Academic Integrity.
NOTE: There are 10 points on this exam and that is a hard cap, i.e. if you earn more than 10, it is
still a 100%. Each problem has 6 points possible.
The point allocation is as follows:
• functional array:
1. Compilation: 0.5 (make test-functional-array)
2. Header Style: 0.5 (cpplint –root=.. inc/functional array.h)
3. Source Style: 0.5 (cpplint –root=.. src/functional array.cc)
4. TestAllocateRectangle: 0.75 (./test-functional-array 0)
5. TestDeallocateRectangle: 0.75 (./test-functional-array 1)
6. TestAllocateJagged: 1.0 (./test-functional-array 2)
7. TestDeallocateJagged: 1.0 (./test-functional-array 3)
8. Test functional-array Memory: 1.0 (make test-functional-array-memory)
• TimeSpan:
1. Compilation: 0.5 (make test-time-span)
2. Header Style: 0.5 (cpplint –root=.. inc/time span.h)
3. Source Style: 0.5 (cpplint –root=.. src/time span.cc)
4. TestPlusTimeSpan: 1.25 (./test-time-span 0)
5. TestPlusInt: 1.25 (./test-time-span 1)
6. TestPlusExtract: 1.0 (./test-time-span 2)
7. TestPlusInsert: 1.0 (./test-time-span 3)