CSE 141L
Test Files For Lab 4
Fall 2003
The following are the properties of each test case for Lab 4:
Mean
- The size of the data array is 16 elements.
- The sum of all 16 numbers overflows an 8-bit value (greater than 255) and requires overflow handling.
- The answer requires rounding up (decimal value greater than or equal to 0.5).
Median
- The size of the data array is 10 elements.
- The data is arranged in the worst case instance (sorted in descending order).
- The data array has an even number of elements (requires averaging the two middle values).
- The answer requires rounding up (decimal value greater than or equal to 0.5).
Mode
- The size of the data array is 11 elements.
The following files are those that were used to grade the correctness of the LogicWorks 4 schematics in Lab 4.
Please make sure to use those files which correspond to the day that you presented, as each day had slightly different cases.
Tuesday
- mean_lab4_tues.dmi: Answer (value in DMem[2] at termination of program) is 9F (Decimal value: 159).
- median_lab4_tues.dmi: Answer (value in DMem[2] at termination of program) is 06 (Decimal value: 6).
- mode_lab4_tues.dmi: Answer (value in DMem[2] at termination of program) is 00 (Decimal value: 0).
Wednesday
- mean_lab4_wed.dmi: Answer (value in DMem[2] at termination of program) is 62 (Decimal value: 98).
- median_lab4_wed.dmi: Answer (value in DMem[2] at termination of program) is 18 (Decimal value: 24).
- mode_lab4_wed.dmi: Answer (value in DMem[2] at termination of program) is 03 (Decimal value: 3).
Thursday
- mean_lab4_thurs.dmi: Answer (value in DMem[2] at termination of program) is 94 (Decimal value: 148).
- median_lab4_thurs.dmi: Answer (value in DMem[2] at termination of program) is 0C (Decimal value: 12).
- mode_lab4_thurs.dmi: Answer (value in DMem[2] at termination of program) is 06 (Decimal value: 6).
Friday
- mean_lab4_fri.dmi: Answer (value in DMem[2] at termination of program) is 82 (Decimal value: 130).
- median_lab4_fri.dmi: Answer (value in DMem[2] at termination of program) is 24 (Decimal value: 36).
- mode_lab4_fri.dmi: Answer (value in DMem[2] at termination of program) is 01 (Decimal value: 1).
Last Modified: December 7, 2003