These assignments use the Simple Computer, not Alice.
1. Write a Simple Computer program that computes the average of the numbers in cells 96, 97, and 98. The average should be deposited in cell 99.
15 points
2. Write a Simple Computer program that computes the largest of the values in cells 90, 91, ..., 98. A copy of the largest value should be placed in cell 99.
15 points for the easy but boring way (without a loop, where similar instructions are repeated multiple times).
20 points for the tricky way in which you use a loop. The trick is this: Suppose you have an instruction
LOAD 90
to load the first data value. In the next loop iteration, you want to load the next one. Find out where the 90 is stored (in the low part of memory), and add 1 to it, thereby modifying the program.
10 points for a partial solution if you only compute the largest of the values in cells 90 and 91 and place that into cell 98.
Submit either text files into which you typed the simple computer instructions, or, if you prefer, attach screen captures.