Arrays and Collections Worksheet 1 - Answers
1. An array called NUMBERS contains 100 numbers. Construct the pseudocode that loops through the array and stores the square of the number in another array called SQUARES. 2. An array contains 1000 names. Construct a search algorithm that asks a user to input a name and outputs the number of times that name appears in the array. 3. A program uses an array which stores 20 numbers. Empty elements are given a value of -1....
To access the contents of this site, you must subscribe.