Question: The followings are two pieces of Visual Basic sample code. (1) Run these two pieces of sample code; (2) Write Visual Basic program that read

The followings are two pieces of Visual Basic sample code. (1) Run these two pieces of sample code; (2) Write Visual Basic program that read 10 positive integers and calculate (i) mean; (ii) max, and (iii) min. VisualBasic Sample Code 1: Module Module1 Sub Main) Test2) nd Sub Sub Test2) Din value As Integer 7 Din value2 As Double = 8.3 Consolc.WriteLine(value) Console.WriteLine(value2) Din array(2) As Char array(0) = "h"c rray(1)- ic array(2) = "' "c Console.WriteLine (array) Write format string If array() array (1) Then Console.WriteLine( First letter is larger!") Else Console.Writeline("Second letter is larger!") nd If Console NriteLine() End Sub End Module
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
