An array is an aggregate data structure that is designed to store a group of objects. Most programming langauges provide built-in support for arrays.
For each design issue and for each language, explain the answer by giving examples
using code segments in these languages.
You can illustrate the answers to these questions, in different parts of a single program.
The example program must be complete.
It should compile and execute on the
Also discuss, in your opinion which language is the best for array operations. Explain why.
Note that Python does not have built-in support for Arrays, but Python lists
can be used instead. On the other hand
array module in Python defines
an object type which can compactly represent an array of basic values: characters,
integers, floating point numbers. Arrays are sequence types and behave very much
like lists, except that the type of objects stored in them is constrained.
The type is specified at object creation time by using a type code, which is a
Put your example programs in different files, each having your last name and
name, and a description for the language and scoping used.
lastname_name_php.php (or lastname_name_php.html).
Put all of these files into a single
You may use the tutorials available in the Internet as a reference, but do not derive your example from the contents of the tutorials. If you do so, your programs may be similar to others in the class, that causes a disciplinary investigation.
Then, e-mail your report, along with the compressed file containing the example programs, to the TA, Gizem Çaylak <email@example.com>.
Collaboration on the homework is not allowed.
Suggestion: Do not postpone the execution of your programs to the last minute! The dijkstra machine might be overloaded, then.