[ad_1]

1-How do you swap 2 array elements? Write a swap method and call it.

3-Write a piece of code to calculate the total value of 2 dimensional array

which has 3 rows and 3 columns. (5 points)

{ {10, 20, 30}

{40, 50, 60}

(70, 80, 90}

}

4-

a)Create a list object that can hold 4 int numbers (name it numberList).

b)Add number 20 to numberList.

c)Insert number 30 at the end of the numberList.

d)Show how many items are in the numberList ( use MessageBox)

.e)Remove one item from numberList.

F)Remove all items from NumberList.

6-Consider below DisplayList method. Create a list the way that when you call the method, you can pass that list as an argument to DisplayList method.So, your answer has two parts: a) create a list b) call DisplayList method.

private void DisplayList(List myList)

Sample Solution

The post Swap 2 array elements appeared first on acestar tutors.

[ad_2]

Source link