notes
mintMovesleft = mintDice
picDaffy.left = picDaffy.left + cSquare
MintMoves = mintMoves -1
Loop Until mintMoves = 0 or picDaffy.left + csquare > (picboard.left+picboard.width)
If mintMoves > 0 then
picDaffy.top = picDaffy.top – clip
If mintMoves >0
p moveleft
End If
End If
End Sub
Notes
lintDiceRoll – set to random
lintmoves = lintdice roll
Repeat
Move piece lintSquare
lintmoves = lintmoves -1
Until lintMoves = 0 or (piece + lintSquare) > picBoard left + picBoard.width
VB NOTES
object.property=value
-> From left to right: picCharacter.Left = picCharacter.Left +25
<- From right to left picCharacter.Left = picCharacter.Left -25
^ From down to up picCharacter.Top = picCharacter.Top -25
v From up to down picCharacter.Top = picCharacter.Top +25
Excerise 9.6
Questions:
- a) Plug the microwave into the power
b) Open microwave door
c) Place the food into the microwave
d) Close microwave door
e) Select time
f) Press start
g) Remove food when timer rings
2. Go to the table where the telephone is located and only if it rings pick it up and talk to the person.
3. INPUT: cake mixture when made
PROCESSING: place cake in oven. When cake is done take out of oven
OUTPUT: eat the cake
Excerise 9.5
Questions:
1. Radio button – to select only 1 option
Check box – to select 1 or more options
Text – to add text to a certain place
Picture – to add a picture to a certain place or background
Scroll up/down – to move up and down of the page
2. GUI or graphical user interface is a user friendly programming environment which is simple and east to use for novice or beginning programmers. This type of programming allows the programmer to place objects into their programs such as buttons, text boxes and data. They also allow the use of a wide range of data types. The smallest item of meaniful data used in any program is a character. Numeric data may be either integers or real numbers, also called decimals. Any series of characters is known as a string with a special use of variables called the boolean data type used to hold only two possible outputs, such as a YES and NO.
3.
|
Data to be handled |
Unique identifier |
Data type |
|
Eg. Your first name |
Eg. FirstName |
Eg. String |
|
Number of students |
No.stdnts |
Integer |
|
Your birthday |
Dob |
Date |
|
Test results |
Score |
Real number |
|
Your gender |
Gender |
boolean |
-
Archives
- November 2008 (1)
- October 2008 (1)
- September 2008 (5)
- August 2008 (6)
- July 2008 (1)
- June 2008 (1)
- May 2008 (11)
- April 2008 (2)
- December 2007 (2)
- November 2007 (1)
- October 2007 (3)
- September 2007 (6)
-
Categories
-
RSS
Entries RSS
Comments RSS
