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)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!