Help me java arrays

homework
javascript

#1

Consider a five-by-10 integer array t. [a – g : 2pts. each, h – n : 3 pts. each]
a. Write a statement that declares and creates t.
b. How many rows does t have?
c. How many columns does t have?
d. How many elements does t have?
e. Write the names of all the elements in the second row of t.
f. Write the names of all the elements in the third column of t.
i. Write a nested for statement that initializes each element of t to zero.
j. Write a nested for statement that inputs the values for the elements of t from the user.
k. Write a series of statements that determines and displays the smallest value in t.
l. Write a statement that displays the elements of the first row of t.
m. Write a statement that totals the elements of the third column of t.
n. Write a series of statements that displays the contents of t in tabular format. List the column indices as heading across the top, and list the row indices at the left of each row.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.