Please Program this in SMALLTALK Extend class Array with the method contains:. It returns true if the argument is in the array, and false if not. Use the #= binary message for comparisons. Example...


Please Program this in SMALLTALK


Extend class Array with the method contains:.

It returns true if the argument is in the array,

and false if not. Use the #= binary message for

comparisons.


Example interaction:


st> a := #(3 1 4 8 7 3).

(3 1 4 8 7 3 )

st> a contains: 4.

true

st> a contains: 99.

false


Start of answer:

Array extend [


Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here