Q1: Suppose A is a one dimension array with § elements is entered into listbox. Write a program Segment 10 find the location J such that A (J) contains the lowest value in A. Display the lowest Value and the location into textbaxes as shown in figure below. o form – o Lowest Value |5 Location (1 o] Q2: amswer four ofthe following cquations below: 1~ Write the code of displaying the selected item from Listbox in label 2+ Write the code of displaying the sclected item from Listbox in Text Box. 3- Wite the code of removing selccted item from the list2. 4 Add*Three” items to list] in form_load even. 5= Write the outputs of following program coding segment To7 AS-1)+S ListBox!tems. Add(Str(A(S)) NextS End Sub End Class Q3: Suppose g v is a linar arrays cach with 9 elements into inputbox which element from g and r in one row respectively. Write a program segment to compute the value of (Z) from the following formula. Display the value of (Z) into textbox. DAY ) ¥ VELam Q4: Write a code program to defined the array § (4.4) Calculate the clements of the numeric amray (5). Each element of S is determined by the formula (Hi= 2i-j+2) Create the one dimensional array X contains the elements of array S (4.4) on row by row. Print the array X into Text Box. z= Transcribed Image Text: QI: Suppose A is a one dimension array with 8 elements is entered into listbox. Write a program
segment to find the location J such that A (J) contains the lowest value in A. Display the lowest
value and the location into textboxes as shown in figure below.
Formt
Lowest Value 5
Localion
1.
Array
Q2: answer four of the following equations below:
1- Write the code of displaying the selected item from Listbox in label
2- Write the code of displaying the selected item from Listbox in Text Box.
3- Write the code of removing selected item from the list2.
4- Add “Three” items to listl in form load event.
5- Write the outputs of following program coding segment
Dim A(7), S
A(1) = 0
For J = 1 To 7
A(S) = A(S – 1) + S
ListBox1.Items.Add(Str(A(S))
Next S
End Sub
End Class
Q3: Suppose g, r is a linear arrays cach with 9 clements into inputbox which element
from g and r in one row respectively. Write a program segment to compute the value
of (Z) from the following formula. Display the value of (Z) into textbox.
0.5
Q4: Write a code program to defined the array S (4.4) Calculate the elements of the numeric aray
(S). Each element of S is determined by the formula (Hi= 21-j+2).Create the one dimensional array
X contains the clements of array S (4,4) on row by row. Print the array X into Text Box.