data01.e ------ ****** Fatal Error: i: Feature not found Line 26 column 6 in DATA01 (./data01.e) : i := data.lower ^ ----- There is no integer called i created. put an i : INTEGER in the local bit. program now works. data02.e ****** Fatal Error: An expression has a result value. This is not an instruction. Line 36 column 8 in DATA02 (./data02.e) : i = i + 1 ^ ------ equivalence boolean expression used instead of assignment statement. Changed '=' to ':=' the assignment statement. Now works. data03.e ****** Fatal Error: Keyword "end" expected at the end of a class. Line 40 column 6 in DATA03 (./data03.e) : end -- class DATA03 ^ ------ 'end' missing for the loop statement. Put the 'end' in, now works. data04.e ****** Fatal Error: An expression has a result value. This is not an instruction. Line 27 column 8 in DATA04 (./data04.e) : i <= data.lower ^ ------ Boolean expression instead of assignment statement. Put ':=' instead of '<=' and now compiles. data05.e ====================================== item ARRAY Current = ARRAY[INTEGER]#3e960 [ storage = NATIVE_ARRAY[INTEGER]#40978 capacity = 10 upper = 10 lower = 1 ] i = 11 Result = 0 line 75 column 10 file /usr/local/smalleiffel-0.75/lib_std/collection.e ===== Top of run-time stack ===== *** Error at Run Time ***: Require Assertion Violated. Process /students/u3952239/school/comp1100/lab07/data05 exited abnormally with code 1 incrementing the loop at the beginning causes it to be 1 over what it is supposed to be. The array is being accessed outside it's limit. Put the loop incrementer at the end of the loop. Now woorks. data06.e No index incrementing statement. Put in 'i:=i+1' at the end of the loop. Now works fine. data07.e Does not print out the last value of the array because in the end loop condition there is 'i >= data.upper' instead of 'i > data.upper'. It is checked before the loop is executed so it does not execute the loop the last time. Took out the '=' and now works.