CPE 315
Fall 2004
Lab #4 FAQ
Lab #4
- Does the 0 delimiter count as a value?
no
- What test cases must be run?
These 3 are the bare minimum but any other test case is possible.
This is a good reason to submit screen prints; you maintain control
over test cases.
Note that 0 is the delimiter and not part of the test case.
2147483647
0
-1
-2
-3
-4
-5
0
-2000000000
2000000000
-22
22
1
2
3
0
- Is there anything I don't have to worry about?
An empty test set (0 as the 1st entry)
Overflow
- What's the best way to compare numbers?
slt instruction
- What's the largest possible test set?
no limit. You should be able to handle any test set.
- If I submit screen prints, might I still demo?
Probably not. But you should always be ready to demo if asked.
- Are PCSpim screen prints acceptable?
Yes. Just be sure you can demo using xspim in lab.
A demo request is unlikely but possible at any time.
- What happens if I use pseudo instructions?
You won't like your lab grade.
- Can I use divide to test for odd/even?
No, absolutely not.
Last updated 10/8/04