Assignment 9
- Due Apr 10, 2019 by 4pm
- Points 100
- Submitting a website url
Rubric
Keep in mind that 279 students have already been assessed using this rubric. Changing it will affect their evaluations.
Criteria | Ratings | Pts | ||
---|---|---|---|---|
hasAOne: Returns a Boolean true if the binary representation of the given 8-bit value contains a one
threshold:
pts
|
|
pts
--
|
||
byteToAscii: Takes in an integer value from 0-9 and returns the corresponding ASCII value as a char
threshold:
pts
|
|
pts
--
|
||
byteToAscii Test Cases
Wrote test cases for all possible values (0-9)
threshold:
pts
|
|
pts
--
|
||
int8ToInt: Takes in an 8-bit signed value and converts it to a 16 bit signed value
threshold:
pts
|
|
pts
--
|
||
addInt8ToInt: Adds an 8-bit signed value to a 16-bit signed value and returns a 16-bit signed result.
threshold:
pts
|
|
pts
--
|
||
addInt8ToInt additional test cases
threshold:
pts
|
|
pts
--
|
||
add4Int8: Adds the four 8-bit signed values and returns an 16-bit signed result.
**No branching used**
This must use int8ToInt() (1 call) and addInt8ToInt() (3 calls).
threshold:
pts
|
|
pts
--
|
||
add4Int8 additional test cases
threshold:
pts
|
|
pts
--
|
||
average: Averages the two unsigned 8-bit values and returns an unsigned 8-bit result
threshold:
pts
|
|
pts
--
|
||
Average additional test cases
threshold:
pts
|
|
pts
--
|
||
Correct usage of call-saved registers
threshold:
pts
|
|
pts
--
|
||
Good code style/easy to grade
No commented out code!
*Useful variable names*
threshold:
pts
|
|
pts
--
|
||
Total Points:
100
out of 100
|