;; Author: Kate Betcher ;; ;; This program reads in income and print out tax like this python script: ;; ;; income = input() ;; if income < 10000: ;; print 0 ;; else: ;; print (20 * income) // 100 allocate-registers income, bound, test, jumpGE, zero, twenty, onehundred, tax read income li bound 10000 slt test income bound li jumpGE LjumpGE jeqz test jumpGE li zero 0 write zero halt LjumpGE: li twenty 20 li onehundred 100 mul tax income twenty div tax tax onehundred write tax halt