Computer Science 252
Problem Solving with Java

Fall 2014, The College of Saint Rose

Lecture 22: Arrays
Date: Tuesday, November 18, 2014


Agenda

Lecture 22 Assignment

Due at the start of class, Thursday, November 20.

Please submit answers to these questions in Submission Box under "LA22" or in hard copy by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.

There are a lot of questions here, but none are especially long. Just take your best shot and don't spend a ton of time agonizing over any of them.

  1. BDM Exercise 14.9.2, p. 399. (8 points)
  2. Write a method that takes an array of double values as its parameter and returns the sum of all elements in the array. (4 points)
  3. BDM Exercise 14.2.1, p. 358. (5 points)
  4. BDM Exercise 14.3.1, p. 363. (2 points)
  5. BDM Exercise 14.3.3, p. 364. (3 points)
  6. BDM Exercise 14.5.2, p. 373. (6 points)

Terminology

Examples