Repetition is called iteration.this is a loop statement.
Mycca Rose S. Samson
BS Computer Science II-A
Saturday, March 19, 2011
Monday, March 14, 2011
SEQUENCE SYSTEM
SOURCE CODE
OUTPUT:
Explanation:
I used vb v6.0 in creating this sample program. First i choose a form then input 3 Label boxes, 4 text boxes and 2 command buttons.I changed their name and Caption. next I coded the program in the code window of the command button then i tested if it is check or error.
Purpose of the sample program: To Record student Informations.
SELECTION SYSTEM
SOURCE CODE
OUTPUT
SELECTION CONSTRUCT IS PROGRAM CONSISTS OF CONDITIONAL STATEMENT:
~~ I used if ans else statements.
This system purpose is for a security system,where you will input your username and password.
Wednesday, March 2, 2011
1. PROGRAMMING READABILITY
Use Meaningful identifiers:
Dim intRandom As Integer, intSum As Integer
Dim intCounter As Integer
Logic Structure:
for this program I used For and Next statement.
For intCounter = 1 To intRandom Step 1
intsum + inSum = intCounter
Next intCounter
lblDisplay.Caption = "The sum of 1 to " & intRandom & " is " & intSum
End Sub
Coding Practice:
intRandom = 0
intSum = 0
intCounter = 0
lblNumber = ""
lblDisplay = ""
cmdGenerate.Enabled = True
cmdReset.Enabled = False
cmdGenerate.Focus
End Sub
Notes and Comments:
I didn't used notes and comments for this program.
2. PROGRAM DOCUMENTATION
Program listing:
For my commandButton i used
cmdGenerate, cmdAdd , cmdReset
for my labelbox i used
lblNumber and lblDisplay
Program specification:
I used the Visual Basic 6.o for my program.
File layouts and Record Description:
Dim intRandom As Integer, intSum As Integer
Dim intCounter As Integer
Operating Instructions:
Subscribe to:
Posts (Atom)