CSE 109 HW 4 Due 10:45 PM Sunday 18 March 2012 This homework is an exercise in writing a STOM program and in writing an StomASM program. It is meant to have you become familiar with how the 'stom' and 'stomasm' programs function. Write an STOM program that reads in a list of five numbers and writes out f(x)=2*x*x-x-3 for each of the numbers. E.g., if the number 2 is read, then 3 is displayed (3=2*2*2-2-3) Use /proj/csc109/bin/stom) to ensure your program works properly. The Simpletron program should use the following data: 4 -4 6 5 -3. Of course your programs should work for other sets of data. Also, it should be easy to modify the program to handle, e.g., 70 data. Write an StomASM program that reads in a list of non-zero ints and computes x*x*x - 3*x*x + 4 for each number. It should quit when it reads in the int 0. Use for input the numbers: 2 -4 3 6 0. To test out your program, first "compile" it with /proj/csc109/bin/stomasm. Then use the code in the resulting codefile as input to 'stom.' To submit your homework, create a subdirectory of cse109.121 called hw4 (that is, from your root directory /cse109.121/hw4). In hw4 store two files, the first called hw4.prog1 and containing your STOM program, the second called hw4.prog2 and containing your StomASM program. The subdirectory hw4 should only contain the above two files. NOTE: This homework (and all homeworks) will only be collected once (unlike programming assignments, for which there will be multiple opportunities to submit your solution). NOTE: The programs stom and stomasm are stored in /proj/csc109/bin/stom /proj/csc109/bin/stomasm See the course website for instructions on how to use these programs. PLEASE AGAIN READ THE SYLLABUS ABOUT UNFAIR COLLABORATION AND DO NOT COLLABORATE UNFAIRLY