Thursday, February 26, 2009

Data Types to know
Boolean- ture or false values
Integer-whole numbers
Deciamls- deciaml value

Naming a variabnle
nopuncuation
first name starts with lovercase letter 2nd iscapital

Declare Variable
Syntax know order
Dim item As Integer

Assing A variable
Dim price as integer
price = 500
Dim name as String
name = "Mary" when giving a string value put in " "


Notes
Naming a varibale-
Rules-
1.The name must begin with a letter or an underscore
2.The name must contain onlyletters, numbers and the underscore charcater. NO puncuation or spaces allowed
3.16383 chratces possible but 32 is reccomneded for name
4.NO reserved namel like print

Flowcharts
Ovals= start and stop
Parellagram = inputs and outputs
Dimond = your decisioins, true/fasle, repetiton
regtangle = calculations or processes

Declaring a Variable you must makea declaratiion statement.
Dim itemPrice As Decimal,
Dim discountPrice As Decimal
This declares two decimal variables named itemPrice and discount; the variabls are automatically initalized to 0

Dim isDataOk As Boolean = True
declares a bnollean variable name isDataOk and initializes it using the keyword True

Dim student As String
Dim age As Integer
decllares a srting variable named studentname and an integr variable named age the string variable is auto initalized to nothing and the integer variable is auto 0

Assign A Value
Dim quantityOrdered As Integer
quantityOrdered = 500
assigns the integer 500 to an integer variable named quantityOrdered

Dim firstName As String
firstName = "Mary"
assugns the string "Mary" toi a string variable named firstName

Dim zipCode As String
zipCode = zipTextBox.text
assings teh string contained in ziptextbox text property to a string variable named zipcode


TryPrase
Dim isconverted As Boolean
Dim sales As Decimal
isconverted = decimal.tryparse(salestextbox.text, _
NumberStyles.currency, NumberFormatInfo.Currentinfo, _
Sales)


If condition than


Ex:
if partNumber = "AB203" Then
price = price * 1.1
messagelabel.text = "Price increase"

If sales >1500 than
commissioin = .2D * sales
else

Concarenate String
firstName & lastName= JustGluck
firstName & " " & lastName = Just Gluck
lastName & ", " & firstName = Gluck, Justin
"She is " & convert.toString(age) & "!" = She is 21!
"She is
commission = .1d * sales
End If

Wednesday, February 25, 2009

Naming a verriable is very important there are a few rules you must know.
1.The name must begin with a letter oran underscore.
2.The name must contain only letters,numbers, and the underscore charcater. Nopuncuation.
3.Manixum Characters allowed is 16383 but 32 is the recommended amount.
4.Cannont be a reserved word such as print.

Declaring a Variable you must makea declaratiion statement.
Dim itemPrice As Decimal, This declares two decimal variables named itemPrice and discount; the variabls are automatically initalized to

Assign A Variableis
Dim SmallOreder As Interger
SmallAmount = 500
^assigns the integer 500 to an integer variable named SmallOrder.

Dim carprice as Double
declares adouble variable named carprice; the varible is automatilly intialized to 0


Dim price as decimal

Tuesday, February 24, 2009

1)a pricelabel.text> andalso pricelabel.text < 10
2)b firstbnametextbox.text.toupper() = "bob"
3)A true
4)False 4>6
5)False 6 is not > four
6)paul
7)jerry
8)paul
9)sue1
0)true path
11)c case 1 to 4
12)paul
13)paul
14)jerry
15)d none
16)d nullorem,pty
17)c messsage box.ok
18)b randpmgenertater(10,55)
19)d
20)b case 1 to 5

Wednesday, February 18, 2009

Justin Gluck Gregory Donadio
1.If than statements are used to tell the computer what to when the item is <, <=, >, >=, =, <>. To make it do something to that. You can multiply that number divide it or do what ever you want. If else statements, contains two sets of intructions. One set is processed whn the condition is true, and the other whn it is false. Symbols for flowcharting are Circles, Dimonds, Oval, Regtangle, and parrellgram. Alwasy Start and end with oval. Parrellagram for show event takeing place or claculations. Dimond for if than statement. Rectangle is used for what to do if false or true.

1. If temperature > 75 Degrees Than display temperature End If

2. If GPA > 2.5 Display number Else messageLabel.text = "You need to improve your GPA"End If

COMPARISION OPERATORS

1. If 100 = 100 than you will make money.End If

2. If name <> Smith thandisplay all other namesEnd If

3. If Tax Rate > 7% Than give 1% dicountEnd if

UPPER/LOWER METHODS
1. If state.ToLower() = "SMITH" Than convert the uppercase version to lowercaseEnd If

2. If state.Upper() = "smith" Than convert the Lowercase version to UppercaseEnd If

Thursday, February 5, 2009

Data Type- determines the type of data the variable can store.
Ex: Integer 4 bytes
Floating point number - indicates sing and double variables
Ex:3,200,000
Unicode- is the universal coding scheme for chaacters.
Boolean Variables- primitive datat ype having one of two values: true and false. Many systems represent true as non-zero (often 1, or -1) and false as zero.
Identifier- should help you remeber the variables purpose.
Dim- portion of the syntax.
String- is a group of characters that apper betweeen the qutations marks.
Literal constanst- is an item iof data whose value do not change.
Literal type chatacter- forces a literal constanst to assume a data type.
Method- is a specific portiion of the calss insrtuction and its purpose.
Trypase method- the can be used to convert a stringt tp the numeric data type.
Line constination Characters- Dim is converted As Boolean
Imports system.Globollization- to tell computer what to do
Tryphase method - that can be used to convert a strig to the numberic data type
Convert Class - contains methods that you can use to convert a numerical value
Precendance Numbers- indicate the order in which the computer performs the operation.
Scope- indicates where in the application code teh variable can be used.
LifeTime- indicates how long the variable remains in the computers internal memory
Procedure Scope - only teh procedure can use the varibale
Static variable - is a procedure level variable that retains it value even when the procedure in witch it is not declared
Option Explixt- make the coding bellow it work.
Open Strict- turns on all string to work
Focus Method- the percentance for allowing you allow to enter text
Psudocode- uses short phrases to descibe teh steps needed to take to accomplish its goal.
Format Specifier- to speie what format the page is
Data Type- determines the type of data the variable can store.
Ex: Integer 4 bytes
Floating point number - indicates sing and double variables
Ex:3,200,000
Unicode- is the universal coding scheme for chaacters.
Boolean Variables- primitive datat ype having one of two values: true and false. Many systems represent true as non-zero (often 1, or -1) and false as zero.
Identifier- should help you remeber the variables purpose.
Dim- portion of the syntax.
String- is a group of characters that apper betweeen the qutations marks.
Literal constanst- is an item iof data whose value do not change.
Literal type chatacter- forces a literal constanst to assume a data type.
Method- is a specific portiion of the calss insrtuction and its purpose.
Trypase method- the can be used to convert a stringt tp the numeric data type.
Line constination Characters- Dim is converted As Boolean
Imports system.Globollization- to tell computer what to do
Tryphase method - that can be used to convert a strig to the numberic data type
Convert Class - contains methods that you can use to convert a numerical value
Precendance Numbers- indicate the order in which the computer performs the operation.
Scope- indicates where in the application code teh variable can be used.
LifeTime- indicates how long the variable remains in the computers internal memory
Procedure Scope - only teh procedure can use the varibale
Static variable - is a procedure level variable that retains it value even when the procedure in witch it is not declared
Option Explixt- make the coding bellow it work.
Open Strict- turns on all string to work
Focus Method- the percentance for allowing you allow to enter text
Psudocode- uses short phrases to descibe teh steps needed to take to accomplish its goal.
Format Specifier- to speie what format the page is