Questions:
1. Create a VB.NET Console Application that defines a function Smallest and calls this function from the main program. The function Smallest takes three parameters, all of the Integer data type, and returns the value of the smallest among the three parameters. The main program should
(1) Prompt a message (using Console.WriteLine) to ask the user to input three integers.
(2) Call the built-in function Console.ReadLine() three times to get the user's input.
(3) Convert the user's input from strings to integers.
(4) Call the function Smallest, with the user's input as its parameters.
(5) Display the result of the function Smallest in the Console window using Console.WriteLine.
You may assume that the user always correctly inputs integers from the keyboard, and your program does not have to check whether the user inputs something other than integers. Print your program and handwrite the user's input and output at the end of the printout of your program.
2. Create a VB.NET Console Application that does the following:
(1) Create an Integer array which contains 10 elements.
(2) Assign the following values to the elements in the array: 9, 1, 8, 4, 2, 6, 7, 3, 5, 10
(3) Use the For-Each-loop to compute and printout the sum of all elements of the array in the Console window.