Wednesday, 22 June 2011

Football Team

Public Class Form1

    Dim player(50, 1) As String
    Dim arrayrow As Integer

    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
        If txtName.Text = "" Or txtNumber.Text = "" Then
            MsgBox("Please enter NAME and NUMBER")
        Else
            player(arrayrow, 0) = txtName.Text
            player(arrayrow, 1) = txtNumber.Text
            txtName.Text = ""
            txtNumber.Text = ""
            arrayrow = arrayrow + 1
            txtName.Focus()
        End If
    End Sub

    Private Sub btnShowTeam_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShowTeam.Click
        arrayrow = 0
        For arrayrow As Integer = 0 To 50
            If Not player(arrayrow, 0) = "" Then
                lstTeam.Items.Add(player(arrayrow, 0) & " | " & player(arrayrow, 1))
            End If
        Next
    End Sub
End Class

Sunday, 27 March 2011

FIFO and LIFO

PRINTER
FIFO - first in first out
Queues have to pointer's. A HP(head pointer) and a TP(tail pointer)
The document that is at the TP is the one that is about to be sent to the printer, as a document is taken from the TP it allows another document to be placed in the print queue, naturally in the HP.

STACK
LIFO - last in first out
Stacks have one pointer, it increments downwards and upwards as new documents/info is processed or added in.
A stack is used to record the returned addresses when a procedure is called.

Thursday, 10 March 2011

RSS

RSS (most commonly expanded as "Really Simple Syndication") is a family of web feed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.

MICROBLOGGING

Microblogging is a broadcast medium in the form of blogging. A microblog differs from a traditional blog in that its content is typically smaller in both actual and aggregate file size. Microblogs "allow users to exchange small elements of content such as short sentences, individual images, or video links".

BLOG

This is a blog

WIKI

A wiki (WIK-ee) is a website that allows the creation and editing of any number of interlinked web pages via a web browser. Examples include community websites, corporate intranets, knowledge management systems, and note services.

Tuesday, 8 March 2011

Representation of different Data types

integer - 32bit
boolean - 1bit
date/time - Integer/Decimal
currency - Decimal (limited)
character - 16bit

Parity Check

The ASCII system is a 7 bit system, because the 8th bit is a parity check.
ASCII - American Standard Code for Information Interchange
7 bits = 128 characters. 

Extended ASCII & Unicode
8 bits = 256 characters UTF-8 UTF-16

Monday, 7 March 2011

Hydrology and Fluvial Geomorphology

Hydrology and Fluvial Geomorphology is the study of the processes of the DRAINAGE BASIN and the processes of the RIVER CHANNEL.

The HYDROLOGICAL CYCLE consists of: -Precipitation
                                                                      -Evaporation
                                                                      -Condensation
 These processes will always occur no matter what else happens(as long as there is solar flux)

Monday, 21 February 2011

Nested For Loop

The general structure for a nested For...Next loop is:

For........     start of outer loop
     For.....          start of inner loop
           .....             body of inner loop
     Next             end of inner loop
Next           end of outer loop

Wednesday, 16 February 2011

Binary

010010010110011000100000011110010110111101110101001000000110101101101110011011110111011100100000011101110110100001100001011101000010000001110100011010000110100101110011001000000111001101100001011110010111001100100000011101000110100001100101011011100010000001110100011001010110110001101100001000000110110101100101