Posts

Number System

Number System The number system of a number is determined by the Radix of a number.Radix means the base of the number which is obtained by the number of symbols present in that number System.They are as follow:-   Sr.No. Number System Radix Symbols 1. Binary number System 2 0,1 2. Octal Number System 8 0,1,2,3,4,5,6,7 3. Decimal Number System 10 0,1,2,3,4,5,6,7,8,9 4. Hexadecimal Number System 16 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F 1.Binary Number System:- The number System with Radix 2 are said to be binary numbers.It contains only 2 symbols 0 and 1.For Examples (1110) 2 ,(1001) 2 ,(1101) 2 ,(1010) 2 ,(1010.111) 2 ,etc. 2.Octal Number System:- The number System with Radix 8 are said to be octal numbers.It contains 8 symbols 0,1,2,3,4,5,6 and 7.For Examples (257) 2 ,(346) 8 ,(412) 8 ,(728) 8 ,(72.39) 8 ,etc. 3.Decimal Number System:- The number System with Radix 10 are said to be decimal numbers.It contains 10 symbols 0,1,2,3,4,5,6,7,8 and 9.For Examples (123) 10 ,(7...

Visual Basic Examples

Image
Program 1:- To create Visual Basic application to find the area of rectangle. Code:-  Private Sub Command1_Click() Text3.Text = Text1.Text * Text2.Text End Sub Private Sub Command2_Click() Text1.Text = " " Text2.Text = " " Text3.Text = " " End Sub /*************************Output**************************/ Program 2:- To create Visual Basic application to average of 3 numbers. Design Window:- Code:- Private Sub Command1_Click() Text4.Text = Str((Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text)) / 3) End Sub Private Sub Command2_Click() Text1.Text = " " Text2.Text = " " Text3.Text = " " Text4.Text = " " End Sub Private Sub Command3_Click() Unload Me End Sub /*************************Output**************************/ Program 3: To create Visual Basic application to illustrate Date-Time functions. Code:- Private Sub Command1_Click () Text1.Text = Dat...