CMU 15-110 Fall 2018: Principles of Computing
Homework 8 (Due Tuesday 6-Nov at 8pm)



Solo Hw8

  1. CS Academy CS1 Unit2 and Unit3 [80 pts]
    1. Do all the notes in CS Academy's CS1 for Unit2 and Unit3 (get green checkmarks on them).
    2. Do these exercises:

  2. minOf3 in assembly language [20 pts]
    First, watch this () on how to write abs() in the LMC simulator.

    Then, using this LMC machine simulator (the one from lecture), write the function minOf3() in assembly language that reads 3 numbers from input, and outputs their minimum. Hint: this is very similar to max(), which we covered in lecture, and which is available in the simulator by clicking on the 'select' button.

    What to submit: the CS1 notes and exercises submit themselves. For the minOf3 exercise, place your answer in a text file which you will submit to Autolab (it will not be autograded, however).