Final Exam - 2nd Attempt
Final Exam - 2nd Attempt
Q2] Design a form and write code to find the summation of odd numbers (from
10 to 30), using Do Loop.
(11 Marks)
Q3] Create a Visual Basic Project to find the value of the following series.
𝑥2 𝑥4 𝑥6 𝑥8
Cos(𝑥) = 1 − + − + −⋯
2! 4! 6! 8!
Write the code program so that the value of angle (𝑥) is entered into TextBox and
the number of terms (N) is entered into input box. Calculate the value of series and
display the result of series (Cos(𝑥)) in another separate Textbox.
(11 Marks)
(1-2)
Q4] Create an array holding 12 integer numbers, and try to sort the array then
reverse it.
(11 Marks)
Q5] Write a code program to read a two-dimensional array (A), and assign values to
an array (A) by using the counter. Also, print the largest value and its location
in Textboxes as shown in the below Figure.
(11 Marks)
(2-2)