. CSE 109 HW 3 9 PM Tuesday 11 March 2008 This homework is an exercise in writing YAPL++ programs and is meant to have you become familiar with YAPL++. Write two YAPL++ programs. The first should read in a list of non- zero integers, the list being of any length, write out each number, and write out the sum of the of the positive numbers and the sum of cubes of the negative numbers. The second should read in 5 ints and for each write out 1 if it is divisible by 2 and write out 0 otherwise. A 0 should serve as a sentinel for the first list. Use sml (stored in /proj/csc109/bin/sml) to make sure your program works properly. The first YAPL++ program should use the following data: 4 -4 6 5 -3 -4 0. The second YAPL++ program should use the following data: -3 4 8 3 -12 Of course your programs should work for other sets of data. To submit your homework, create a subdirectory of cse109.081 called hw3 (that is, from your root directory /cse109.081/hw3). In hw3 store two files, the first called hw3.prog1 and containing your first YAPL++ program and the second called hw3.prog2 and containing your second YAPL++ program. The subdirectory hw3 should contain no other 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).