You are on page 1of 1

Name: _____________________________________________________

In computer science, an array data structure or simply array is a data structure consisting of a collection of elements (values or
variables), each identified by at least one array index or key.

A one-dimensional array (or single dimension array) is a type of linear array. Accessing its
elements involves a single subscript which can either represent a row or column index.

Suppose you have a linear array of N positions which contains unique integer numbers and letters entered randomly. Please
write the code, pseudo-code or any language you know, for a (one) subroutine that accomplishes the following requirements.

1) Find and print how many positions contains the array


2) Print the sum of all of the numbers;
3) Find if number 154 is in the array and print on what position is at.
4) Print how many positions of the array contain letters

If you do not know how to write the code, then please create the flow diagram that show the flow of the program

You might also like