FOR LOOP
This program is a loop statement because it will appear the output when you press the for loop button. you can see the simple coding for this program. the output will appear like this 1, 2, 3, then "this number is 4", 5, 6, 7, 8, 9, 10. Unlike many other program this is loop is simple.
Saturday, March 19, 2011
Monday, March 14, 2011
SEQUENCE
This is program contains a 3 Text box and 2 Command Button. Its just an simple program that will inserted the same number then if they are the same it will shown as True, if there not the same numbers it will shown as False.
OUTPUT
SELECTION
This program that I use is just converting the numbers to binary, hexadecimal and octal.
its a simple program for converting a number. It contains Text box and Option Button for choosing binary, hexadecimal and octet.
This is program contains a 3 Text box and 2 Command Button. Its just an simple program that will inserted the same number then if they are the same it will shown as True, if there not the same numbers it will shown as False.
OUTPUT
SELECTION
This program that I use is just converting the numbers to binary, hexadecimal and octal.
its a simple program for converting a number. It contains Text box and Option Button for choosing binary, hexadecimal and octet.
OUTPUT
Wednesday, March 2, 2011
PROGRAMMING READABILITY
MEANINGFUL IDENTIFIERS
I use meaningful identifiers like Enter Key(txtEnterKey), ASCII VALUE(lblResult), QUIT(cmdQuit), Case and CLEAR(cmdClear). it is readable because I use simple variable.
LOGIC STRUCTURE
I use case and switch for the iteration, and if then statement.
CODING PRACTICE
Private Sub txtEnterKey_KeyDown (KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyDelete
lblResult.Caption="Delete Pressed!"
txtEnterKey.Text="(Delete)"
Case vbKeyInsert
lblResult.Caption="Insert Pressed!"
txtEnterKey.Text="(Insert)"
Case vbKeyEnd
lblResult.Caption="End Pressed!"
txtEnterKey.Text="(End)"
End Select
End Sub
NOTES AND COMMENTS
In this program i didn't use comments.
PROGRAM DOCUMENTATION
PROGRAM LISTING
I use txtEnterKey form my textboz where will you input a number, letter and other,
I use lblResult for my label box where the result would be shown
I use cmdClear for clearing the text box and label box.
I use cmdQuit for the exit of my program
PROGRAM SPECIFICATION
for my program I use Visual basic 6.0, and this program shows the ascii code of the letter, number and others.
FILE LAYOUTS AND RECORD DESCRIPTION
None
OPERATING INSTRUCTIONS
My progam uses a text box where you would enter a letter, number and other, then a label box that shows the ascii code.
MEANINGFUL IDENTIFIERS
I use meaningful identifiers like Enter Key(txtEnterKey), ASCII VALUE(lblResult), QUIT(cmdQuit), Case and CLEAR(cmdClear). it is readable because I use simple variable.
LOGIC STRUCTURE
I use case and switch for the iteration, and if then statement.
CODING PRACTICE
Private Sub txtEnterKey_KeyDown (KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyDelete
lblResult.Caption="Delete Pressed!"
txtEnterKey.Text="(Delete)"
Case vbKeyInsert
lblResult.Caption="Insert Pressed!"
txtEnterKey.Text="(Insert)"
Case vbKeyEnd
lblResult.Caption="End Pressed!"
txtEnterKey.Text="(End)"
End Select
End Sub
NOTES AND COMMENTS
In this program i didn't use comments.
PROGRAM DOCUMENTATION
PROGRAM LISTING
I use txtEnterKey form my textboz where will you input a number, letter and other,
I use lblResult for my label box where the result would be shown
I use cmdClear for clearing the text box and label box.
I use cmdQuit for the exit of my program
PROGRAM SPECIFICATION
for my program I use Visual basic 6.0, and this program shows the ascii code of the letter, number and others.
FILE LAYOUTS AND RECORD DESCRIPTION
None
OPERATING INSTRUCTIONS
My progam uses a text box where you would enter a letter, number and other, then a label box that shows the ascii code.
Subscribe to:
Posts (Atom)