procedure Mean.
number of marks=0
total=0
Do while You're still got marks
Get mark
Number of Marks=Number of marks+1
Total= Total+mark
End while
Average= total/numbermarks
End
Oscars Blog
Sunday, 20 March 2011
Wednesday, 16 March 2011
9.1 Program
Visual Basic Code for Program 9.1
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value.))
End Sub
Private Sub hsbGreen_Scroll (...) Handles hsbGreen.Scroll
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value.))
End Sub
Private Sub hsbBlue_Scroll (...) Handles hsbBlue.Scroll
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value.))
End Sub
Private Sub hsbBlue_scroll (ByVal sender As System. Object, ByVal e As System.Windows.For (...)
Call ShowFormColour( )
End Sub
Sub ShowFormColour( )
End Class
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value))
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Call ShowFormColour( )
End Sub
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Call ShowFormColour( )
End Sub
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Call ShowFormColour( )
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value.))
End Sub
Private Sub hsbGreen_Scroll (...) Handles hsbGreen.Scroll
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value.))
End Sub
Private Sub hsbBlue_Scroll (...) Handles hsbBlue.Scroll
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value.))
End Sub
Private Sub hsbBlue_scroll (ByVal sender As System. Object, ByVal e As System.Windows.For (...)
Call ShowFormColour( )
End Sub
Sub ShowFormColour( )
End Class
Me.BackColor = ColorTranslator.FromO1e(RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value))
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Call ShowFormColour( )
End Sub
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Call ShowFormColour( )
End Sub
Private Sub hsbRed_Scroll (...) Handles hsbRed.Scroll
Call ShowFormColour( )
Procedures and functions.
What is a procedure?
A procedure is a seperate section of code which performs one or more specific tasks and is identified by having a name.
Four types:
A procedure is a seperate section of code which performs one or more specific tasks and is identified by having a name.
Four types:
- Event
- Sub
- Function
- Property
Why use procedures?
- Avoid repeating code.
- Make the code more readable
- Help in debugging a program
- Use a procedure in other programs
- Pass parameters.
What is a function?
A procedure could be considered as something which is a set of commands which do not return a value.
Monday, 14 March 2011
Social media.
WIKI, Blogs, RSS and Micro Blog's.
A WIKI is software that runs a wiki or a website that allows users to collaboratively create and edit web pages using a web browser. For example; Wikipedia.
A Blog is a web based mechanism to allow discussion on a topic on the web. For example; Blogger.
A RSS or 'Real simple syndication' is a group of web feed formats used to publish frequently updated sites and topics. For example; Twitter.
A Micro Blog is different from a traditional blog because its content is typically much smaller.
Binary code.
Examples of binary.
For 94
128 . 64 . 32 . 16 . 8 . 4 . 2 . 1
0 1 0 1 1 1 1 0
For the Binary Number 2.5
8 . 4 . 2 . 1 . 1/2 . 1/4 . 1/8
0 0 1 0 1 0 0
0010100 - This Byte is called the mantissa and shows the number with the decimal placed moved to then end.
0000001 - This Byte is called the exponent and shows how many places the decimal place has been moved.
8 bits is usually called a "byte",
and a "nybble" is 4 bits;
For 94
128 . 64 . 32 . 16 . 8 . 4 . 2 . 1
0 1 0 1 1 1 1 0
For the Binary Number 2.5
8 . 4 . 2 . 1 . 1/2 . 1/4 . 1/8
0 0 1 0 1 0 0
0010100 - This Byte is called the mantissa and shows the number with the decimal placed moved to then end.
0000001 - This Byte is called the exponent and shows how many places the decimal place has been moved.
8 bits is usually called a "byte",
and a "nybble" is 4 bits;
Wednesday, 9 March 2011
System processors
Single - user OS a single user OS is a system designed for use on a computer that will allow a single user at a time.
Multi - user OS, simular to the single user OS, the multi user OS allows multiple user to access and operate the system at any given time.
Multi - user OS, simular to the single user OS, the multi user OS allows multiple user to access and operate the system at any given time.
Batch Processing is a technique that uses a single program to process many individual jobs, tasks, or requests.
Revision from test.
Disk formatting zeros the disk. Formats for a particular system. E.g Ntfs
Hardware driver allows a piece of hardware to be used and interact with the computer.
File compression shrinks files. Because you either want to save hardrive space or emailing.
Virus checker uses a registered list of virus of all known virus known around the world which your computer downloads which scans your hardrive of those known files.
Hardware driver allows a piece of hardware to be used and interact with the computer.
File compression shrinks files. Because you either want to save hardrive space or emailing.
Virus checker uses a registered list of virus of all known virus known around the world which your computer downloads which scans your hardrive of those known files.
Subscribe to:
Posts (Atom)