CS1S Homework 2 -- Due Sept. 29, 2005
Name:___________________________
1) Write the declaration for an
array of floating point numbers:
2) Create an array of three
booleans, and set all three elements to 'true'.
3) Each of 5 students took 3
different tests: math, verbal, and composition. Create a matrix (an array of arrays) in which to store these
scores as doubles. Each row will represent
a student, and each column will represent a test. (I expect only 1 line of code.)
4) Describe the variable 'args' in
the following line of Java code:
public static void main( String args[] ) {
5) When the size of an array is not
known until run time, how can a program calculate the boundary value of a 'for'
loop which must operate on each element of the array?